Commit 5d99cc20 authored by Mike Wey's avatar Mike Wey

Regenerate the bindings.

parent 01accc89
......@@ -81,6 +81,16 @@ public class AggregatorPad : Pad
return gst_aggregator_pad_drop_buffer(gstAggregatorPad) != 0;
}
/**
* 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.
*/
......
......@@ -114,7 +114,7 @@ public struct Base
*
* Params:
* obj = object doing the typefinding, or %NULL (used for logging)
* data = a pointer with data to typefind
* data = * a pointer with data to typefind
* prob = location to store the probability of the found
* caps, or %NULL
*
......
......@@ -439,8 +439,7 @@ public class ByteWriter
* Writes a NUL-terminated UTF8 string to @writer (including the terminator).
*
* Params:
* data = UTF8 string to
* write
* data = UTF8 string to write
*
* Returns: %TRUE if the value could be written
*/
......
......@@ -85,6 +85,7 @@ shared static this()
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);
......@@ -471,6 +472,7 @@ __gshared extern(C)
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;
......@@ -697,7 +699,7 @@ __gshared extern(C)
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, char* data) c_gst_byte_writer_put_string_utf8;
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;
......@@ -855,6 +857,7 @@ alias c_gst_aggregator_set_src_caps gst_aggregator_set_src_caps;
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;
......
......@@ -546,13 +546,13 @@ 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 = 0;
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 = 0;
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;
......
......@@ -502,14 +502,13 @@ public class Buffer
* Params:
* offset = the offset to extract
* dest = the destination address
* size = the size to extract
*
* 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, void* dest, size_t size)
public size_t extract(size_t offset, ubyte[] dest)
{
return gst_buffer_extract(gstBuffer, offset, dest, size);
return gst_buffer_extract(gstBuffer, offset, dest.ptr, cast(size_t)dest.length);
}
/**
......
......@@ -84,11 +84,10 @@ public struct Utils
*
* Params:
* mem = a pointer to the memory to dump
* size = the size of the memory block to dump
*/
public static void dumpMem(char* mem, uint size)
public static void dumpMem(char[] mem)
{
gst_util_dump_mem(mem, size);
gst_util_dump_mem(mem.ptr, cast(uint)mem.length);
}
/**
......
......@@ -6647,7 +6647,7 @@ alias GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER = ELEMENT_FACTORY_TYPE_AUDIO_ENCODE
/**
* All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders)
*/
enum ELEMENT_FACTORY_TYPE_DECODABLE = 353UL;
enum ELEMENT_FACTORY_TYPE_DECODABLE = 1377UL;
alias GST_ELEMENT_FACTORY_TYPE_DECODABLE = ELEMENT_FACTORY_TYPE_DECODABLE;
enum ELEMENT_FACTORY_TYPE_DECODER = 1UL;
......@@ -6861,7 +6861,7 @@ alias GST_NSECOND = NSECOND;
* 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 = 2;
enum PARAM_CONTROLLABLE = 512;
alias GST_PARAM_CONTROLLABLE = PARAM_CONTROLLABLE;
/**
......@@ -6869,7 +6869,7 @@ alias GST_PARAM_CONTROLLABLE = PARAM_CONTROLLABLE;
* 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 = 8;
enum PARAM_MUTABLE_PAUSED = 2048;
alias GST_PARAM_MUTABLE_PAUSED = PARAM_MUTABLE_PAUSED;
/**
......@@ -6877,20 +6877,20 @@ alias GST_PARAM_MUTABLE_PAUSED = PARAM_MUTABLE_PAUSED;
* 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 = 16;
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 = 4;
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 = 256;
enum PARAM_USER_SHIFT = 65536;
alias GST_PARAM_USER_SHIFT = PARAM_USER_SHIFT;
/**
......@@ -7638,7 +7638,7 @@ alias GST_VERSION_MAJOR = VERSION_MAJOR;
/**
* The micro version of GStreamer at compile time:
*/
enum VERSION_MICRO = 0;
enum VERSION_MICRO = 1;
alias GST_VERSION_MICRO = VERSION_MICRO;
/**
......
......@@ -212,18 +212,18 @@ public class FrameClock : ObjectG
*
* 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.
* 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.
*
* Since: 3.8
*/
public void getRefreshInfo(long baseTime, long* refreshIntervalReturn, long* presentationTimeReturn)
public void getRefreshInfo(long baseTime, out long refreshIntervalReturn, out long presentationTimeReturn)
{
gdk_frame_clock_get_refresh_info(gdkFrameClock, baseTime, refreshIntervalReturn, presentationTimeReturn);
gdk_frame_clock_get_refresh_info(gdkFrameClock, baseTime, &refreshIntervalReturn, &presentationTimeReturn);
}
/**
......
......@@ -35,7 +35,7 @@ private import gtkd.Loader;
/**
* A #GdkRGBA is used to represent a (possibly translucent)
* color, in a way that is compatible with cairos notion of color.
* color, in a way that is compatible with cairos notion of color.
*/
public final class RGBA
{
......
......@@ -406,7 +406,7 @@ 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 = 11;
enum PIXBUF_MICRO = 12;
alias GDK_PIXBUF_MICRO = PIXBUF_MICRO;
/**
......@@ -421,7 +421,7 @@ alias GDK_PIXBUF_MINOR = PIXBUF_MINOR;
* This is the version being compiled against; contrast with
* #gdk_pixbuf_version.
*/
enum PIXBUF_VERSION = "2.36.11";
enum PIXBUF_VERSION = "2.36.12";
alias GDK_PIXBUF_VERSION = PIXBUF_VERSION;
/**
......
......@@ -86,10 +86,11 @@ private import std.algorithm;
* instance and g_application_run() promptly returns. See the code
* examples below.
*
* If used, the expected form of an application identifier is very close
* to that of of a
* [D-Bus bus name](http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-interface).
* Examples include: "com.example.MyApp", "org.example.internal-apps.Calculator".
* 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
......@@ -305,23 +306,47 @@ public class Application : ObjectG, ActionGroupIF, ActionMapIF
* 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 must contain only the ASCII characters
* "[A-Z][a-z][0-9]_-." and must not begin with a digit.
* - Application identifiers are composed of 1 or more elements separated by a
* period (`.`) character. All elements must contain at least one character.
*
* - Application identifiers must contain at least one '.' (period)
* character (and thus at least two elements).
* - 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 not begin or end with a '.' (period)
* character.
* - Application identifiers must contain at least one `.` (period) character
* (and thus at least two elements).
*
* - Application identifiers must not contain consecutive '.' (period)
* characters.
* - 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
*
......
......@@ -62,6 +62,27 @@ public class PtrArray
this.ownedRef = ownedRef;
}
/**
* Number of pointers in the array
*/
public uint len() pure
{
return gPtrArray.len;
}
/**
* Returns the pointer at the given index of the pointer array.
*
* This does not perform bounds checking on the given index, so
* you are responsible for checking it against the array length.
*/
public void* index(uint idx)
{
return (gPtrArray.pdata)[idx];
}
/**
*/
/**
* Adds a pointer to the end of the pointer array. The array will grow
......
......@@ -42,7 +42,7 @@ public struct Str
* Convert C-style 0 terminated string s to char[] string.
* copied from phobos
*/
public static string toString(const(char)* s, size_t len = 0)
public static string toString(const(char)* s, size_t len = 0) pure
{
if ( s is null )
return cast(string)null;
......@@ -57,7 +57,7 @@ public struct Str
* Convert array of chars s[] to a C-style 0 terminated string.
* copied from phobos
*/
public static char* toStringz(string s)
public static char* toStringz(string s) pure
{
if ( s is null ) return null;
char[] copy;
......@@ -78,7 +78,7 @@ public struct Str
}
/** */
public static char** toStringzArray(string[] args)
public static char** toStringzArray(string[] args) pure
{
if ( args is null )
{
......@@ -96,7 +96,7 @@ public struct Str
}
/** */
public static char*** toStringzArray(string[][] args)
public static char*** toStringzArray(string[][] args) pure
{
if ( args is null )
{
......@@ -114,7 +114,7 @@ public struct Str
}
/** */
public static string[] toStringArray(const(char*)* args)
public static string[] toStringArray(const(char*)* args) pure
{
if ( args is null )
{
......@@ -132,7 +132,7 @@ public struct Str
}
/** */
public static string[] toStringArray(const(char*)* args, size_t len)
public static string[] toStringArray(const(char*)* args, size_t len) pure
{
string[] argv = new string[len];
......@@ -145,7 +145,7 @@ public struct Str
}
/** */
public static string[][] toStringArray(char*** args)
public static string[][] toStringArray(char*** args) pure
{
string[][] argv;
......
......@@ -5934,7 +5934,7 @@ alias G_MAXUINT8 = MAXUINT8;
* application compile time, rather than from the library
* linked against at application run time.
*/
enum MICRO_VERSION = 0;
enum MICRO_VERSION = 1;
alias GLIB_MICRO_VERSION = MICRO_VERSION;
/**
......
......@@ -177,7 +177,7 @@ public class GLArea : Widget
/**
* Creates a new #GtkGLArea widget.
*
* Returns: the newly created #GtkGLArea
* Returns: a new #GtkGLArea
*
* Since: 3.16
*
......@@ -192,7 +192,7 @@ public class GLArea : Widget
throw new ConstructionException("null returned by new");
}
this(cast(GtkGLArea*) p, true);
this(cast(GtkGLArea*) p);
}
/**
......
......@@ -277,7 +277,7 @@ public class ProgressBar : Widget, OrientableIF
* %TRUE and #GtkProgressBar:text to the empty string (not %NULL).
*
* Params:
* showText = whether to show superimposed text
* showText = whether to show text
*
* Since: 3.0
*/
......
......@@ -3795,9 +3795,9 @@ public class Widget : ObjectG, ImplementorIF, BuildableIF
* navigation outside the widget, e.g. by calling
* gtk_widget_child_focus() on the widget’s toplevel.
*
* The default ::keynav-failed handler returns %TRUE for
* The default ::keynav-failed handler returns %FALSE for
* %GTK_DIR_TAB_FORWARD and %GTK_DIR_TAB_BACKWARD. For the other
* values of #GtkDirectionType it returns %FALSE.
* values of #GtkDirectionType it returns %TRUE.
*
* Whenever the default handler returns %TRUE, it also calls
* gtk_widget_error_bell() to notify the user of the failed keyboard
......
......@@ -12311,7 +12311,7 @@ public alias extern(C) void function(GtkTreeView* treeView, GtkWidget* searchDia
* application compile time, rather than from the library linked
* against at application run time.
*/
enum BINARY_AGE = 2229;
enum BINARY_AGE = 2230;
alias GTK_BINARY_AGE = BINARY_AGE;
/**
......@@ -12326,7 +12326,7 @@ alias GTK_INPUT_ERROR = INPUT_ERROR;
* application compile time, rather than from the library linked
* against at application run time.
*/
enum INTERFACE_AGE = 29;
enum INTERFACE_AGE = 30;
alias GTK_INTERFACE_AGE = INTERFACE_AGE;
/**
......@@ -12366,7 +12366,7 @@ alias GTK_MAX_COMPOSE_LEN = MAX_COMPOSE_LEN;
* application compile time, rather than from the library linked
* against at application run time.
*/
enum MICRO_VERSION = 29;
enum MICRO_VERSION = 30;
alias GTK_MICRO_VERSION = MICRO_VERSION;
/**
......
......@@ -126,11 +126,11 @@ struct RsvgPositionData
enum MAJOR_VERSION = 2;
alias LIBRSVG_MAJOR_VERSION = MAJOR_VERSION;
enum MICRO_VERSION = 3;
enum MICRO_VERSION = 4;
alias LIBRSVG_MICRO_VERSION = MICRO_VERSION;
enum MINOR_VERSION = 42;
alias LIBRSVG_MINOR_VERSION = MINOR_VERSION;
enum VERSION = "2.42.3";
enum VERSION = "2.42.4";
alias LIBRSVG_VERSION = VERSION;
......@@ -363,7 +363,7 @@ alias VTE_MAJOR_VERSION = MAJOR_VERSION;
* The micro version number of the VTE library
* (e.g. in version 3.1.4 this is 4).
*/
enum MICRO_VERSION = 0;
enum MICRO_VERSION = 1;
alias VTE_MICRO_VERSION = MICRO_VERSION;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment