diff options
author | Evan Nemerson <evan@coeus-group.com> | 2012-09-15 11:46:51 -0700 |
---|---|---|
committer | Evan Nemerson <evan@coeus-group.com> | 2012-09-15 16:27:50 -0700 |
commit | a250b4631902f3fdc97aa50187bf2b3639a1b1a8 (patch) | |
tree | b635a1a1fa4319a27afb1731666012d52a580170 | |
parent | d82ee6d94aea95851b1bbf2197f541e77e0d97ef (diff) | |
download | vala-a250b4631902f3fdc97aa50187bf2b3639a1b1a8.tar.gz |
bindings: update GIR-based bindings.
-rw-r--r-- | vapi/gdk-3.0.vapi | 4 | ||||
-rw-r--r-- | vapi/gio-2.0.vapi | 26 | ||||
-rw-r--r-- | vapi/gobject-introspection-1.0.vapi | 3 | ||||
-rw-r--r-- | vapi/gstreamer-1.0.vapi | 27 | ||||
-rw-r--r-- | vapi/gstreamer-app-1.0.vapi | 6 | ||||
-rw-r--r-- | vapi/gstreamer-audio-1.0.vapi | 24 | ||||
-rw-r--r-- | vapi/gstreamer-base-1.0.vapi | 7 | ||||
-rw-r--r-- | vapi/gstreamer-tag-1.0.vapi | 4 | ||||
-rw-r--r-- | vapi/gstreamer-video-1.0.vapi | 18 | ||||
-rw-r--r-- | vapi/libgdata.vapi | 2 | ||||
-rw-r--r-- | vapi/libsoup-2.4.vapi | 21 | ||||
-rw-r--r-- | vapi/mx-1.0.vapi | 2 | ||||
-rw-r--r-- | vapi/packagekit-glib2.vapi | 360 | ||||
-rw-r--r-- | vapi/pango.vapi | 12 | ||||
-rw-r--r-- | vapi/vte-2.90.vapi | 6 |
15 files changed, 315 insertions, 207 deletions
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi index a91968151..466a1d8db 100644 --- a/vapi/gdk-3.0.vapi +++ b/vapi/gdk-3.0.vapi @@ -4792,7 +4792,7 @@ namespace Gdk { public class Keymap : GLib.Object { [CCode (has_construct_function = false)] protected Keymap (); - public void add_virtual_modifiers (out Gdk.ModifierType state); + public void add_virtual_modifiers (ref Gdk.ModifierType state); public bool get_caps_lock_state (); public static unowned Gdk.Keymap get_default (); public Pango.Direction get_direction (); @@ -4804,7 +4804,7 @@ namespace Gdk { public bool get_num_lock_state (); public bool have_bidi_layouts (); public uint lookup_key (Gdk.KeymapKey key); - public bool map_virtual_modifiers (out Gdk.ModifierType state); + public bool map_virtual_modifiers (ref Gdk.ModifierType state); public bool translate_keyboard_state (uint hardware_keycode, Gdk.ModifierType state, int group, out uint keyval, out int effective_group, out int level, out Gdk.ModifierType consumed_modifiers); public signal void direction_changed (); public signal void keys_changed (); diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 7b828ec8e..32692a9ef 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -34,10 +34,14 @@ namespace GLib { [CCode (cheader_filename = "gio/gio.h")] public static string get_description (string type); [CCode (cheader_filename = "gio/gio.h")] + public static string get_generic_icon_name (string type); + [CCode (cheader_filename = "gio/gio.h")] public static GLib.Icon get_icon (string type); [CCode (cheader_filename = "gio/gio.h")] public static string? get_mime_type (string type); [CCode (cheader_filename = "gio/gio.h")] + public static GLib.Icon get_symbolic_icon (string type); + [CCode (cheader_filename = "gio/gio.h")] public static string guess (string? filename, [CCode (array_length_cname = "data_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[]? data, out bool result_uncertain); [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")] public static string[] guess_for_tree (GLib.File root); @@ -177,6 +181,8 @@ namespace GLib { public const string STANDARD_SIZE; [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER")] public const string STANDARD_SORT_ORDER; + [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON")] + public const string STANDARD_SYMBOLIC_ICON; [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET")] public const string STANDARD_SYMLINK_TARGET; [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TARGET_URI")] @@ -467,9 +473,9 @@ namespace GLib { protected DBusConnection (); public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function); public async GLib.Variant call (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error; - public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error; + public GLib.Variant call_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error; public async GLib.Variant call_with_unix_fd_list (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error; - public GLib.Variant call_with_unix_fd_list_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error; + public GLib.Variant call_with_unix_fd_list_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error; public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error; public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error; @@ -1015,6 +1021,7 @@ namespace GLib { public unowned string get_name (); public int64 get_size (); public int32 get_sort_order (); + public unowned GLib.Icon get_symbolic_icon (); public unowned string get_symlink_target (); public bool has_attribute (string attribute); public bool has_namespace (string name_space); @@ -1044,6 +1051,7 @@ namespace GLib { public void set_name (string name); public void set_size (int64 size); public void set_sort_order (int32 sort_order); + public void set_symbolic_icon (GLib.Icon icon); public void set_symlink_target (string symlink_target); public void unset_attribute_mask (); } @@ -1382,6 +1390,10 @@ namespace GLib { [CCode (has_construct_function = false)] public MenuItem (string? label, string? detailed_action); [CCode (has_construct_function = false)] + public MenuItem.from_model (GLib.MenuModel model, int item_index); + public GLib.Variant get_attribute_value (string attribute, GLib.VariantType expected_value); + public GLib.MenuModel get_link (string link); + [CCode (has_construct_function = false)] public MenuItem.section (string? label, GLib.MenuModel section); public void set_action_and_target (string? action, string? format_string, ...); public void set_action_and_target_value (string? action, GLib.Variant? target_value); @@ -1450,7 +1462,7 @@ namespace GLib { [HasEmitter] public virtual signal void reply (GLib.MountOperationResult result); public virtual signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode (array_length = false, array_null_terminated = true)] string[] choices); - public virtual signal void show_unmount_progress (string message, uint64 time_left, uint64 bytes_left); + public virtual signal void show_unmount_progress (string message, int64 time_left, int64 bytes_left); } [CCode (cheader_filename = "gio/gio.h")] public abstract class NativeVolumeMonitor : GLib.VolumeMonitor { @@ -2355,6 +2367,7 @@ namespace GLib { public abstract string get_name (); public virtual unowned string get_sort_key (); public abstract GLib.DriveStartStopType get_start_stop_type (); + public abstract GLib.Icon get_symbolic_icon (); public abstract GLib.List<GLib.Volume> get_volumes (); public abstract bool has_media (); public abstract bool has_volumes (); @@ -2381,9 +2394,8 @@ namespace GLib { public abstract async GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (vfunc_name = "delete_file")] public abstract bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error; - public async bool delete_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error; - [NoWrapper] - public abstract async bool delete_file_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (vfunc_name = "delete_file_async")] + public abstract async bool delete_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error; public abstract GLib.File dup (); [Deprecated (since = "2.22")] public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; @@ -2509,6 +2521,7 @@ namespace GLib { public abstract string get_name (); public abstract GLib.File get_root (); public virtual unowned string get_sort_key (); + public abstract GLib.Icon get_symbolic_icon (); public abstract string get_uuid (); public abstract GLib.Volume get_volume (); [CCode (array_length = false, array_null_terminated = true)] @@ -2644,6 +2657,7 @@ namespace GLib { public abstract GLib.Mount get_mount (); public abstract string get_name (); public virtual unowned string get_sort_key (); + public abstract GLib.Icon get_symbolic_icon (); public abstract string get_uuid (); [CCode (vfunc_name = "mount_fn")] public abstract async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error; diff --git a/vapi/gobject-introspection-1.0.vapi b/vapi/gobject-introspection-1.0.vapi index 3bcd8effd..3a85a7b05 100644 --- a/vapi/gobject-introspection-1.0.vapi +++ b/vapi/gobject-introspection-1.0.vapi @@ -45,12 +45,14 @@ namespace GI { public class CallableInfo : GI.BaseInfo { [CCode (has_construct_function = false)] protected CallableInfo (); + public static bool can_throw_gerror (GI.CallableInfo info); public static GI.ArgInfo get_arg (GI.CallableInfo info, int n); public static GI.Transfer get_caller_owns (GI.CallableInfo info); public static int get_n_args (GI.CallableInfo info); public static unowned string get_return_attribute (GI.CallableInfo info, string name); public static GI.TypeInfo get_return_type (GI.CallableInfo info); public static bool invoke (GI.CallableInfo info, void* function, GI.Argument in_args, int n_in_args, GI.Argument out_args, int n_out_args, GI.Argument return_value, bool is_method, bool @throws) throws GLib.Error; + public static bool is_method (GI.CallableInfo info); public static bool iterate_return_attributes (GI.CallableInfo info, GI.AttributeIter iterator, out unowned string name, out unowned string value); public static void load_arg (GI.CallableInfo info, int n, out unowned GI.ArgInfo arg); public static void load_return_type (GI.CallableInfo info, out unowned GI.TypeInfo type); @@ -102,6 +104,7 @@ namespace GI { [CCode (has_construct_function = false)] protected InterfaceInfo (); public static GI.FunctionInfo find_method (GI.InterfaceInfo info, string name); + public static GI.SignalInfo find_signal (GI.InterfaceInfo info, string name); public static GI.VFuncInfo find_vfunc (GI.InterfaceInfo info, string name); public static GI.ConstantInfo get_constant (GI.InterfaceInfo info, int n); public static GI.StructInfo get_iface_struct (GI.InterfaceInfo info); diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index b064167e6..378302e07 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -961,7 +961,6 @@ namespace Gst { public uint32 seqnum; public uint64 timestamp; public Gst.EventType type; - public void add_stream_config_header (Gst.Buffer buf); [CCode (has_construct_function = false)] public Event.buffer_size (Gst.Format format, int64 minsize, int64 maxsize, bool @async); [CCode (has_construct_function = false)] @@ -977,7 +976,6 @@ namespace Gst { public Event.flush_stop (bool reset_time); [CCode (has_construct_function = false)] public Event.gap (Gst.ClockTime timestamp, Gst.ClockTime duration); - public uint get_n_stream_config_headers (); public uint32 get_seqnum (); public unowned Gst.Structure get_structure (); public bool has_name (string name); @@ -990,15 +988,12 @@ namespace Gst { public void parse_flush_stop (out bool reset_time); public void parse_gap (out Gst.ClockTime timestamp, out Gst.ClockTime duration); public void parse_latency (out Gst.ClockTime latency); - public bool parse_nth_stream_config_header (uint index, out unowned Gst.Buffer buf); public void parse_qos (out Gst.QOSType type, out double proportion, out Gst.ClockTimeDiff diff, out Gst.ClockTime timestamp); public void parse_seek (out double rate, out Gst.Format format, out Gst.SeekFlags flags, out Gst.SeekType start_type, out int64 start, out Gst.SeekType stop_type, out int64 stop); public void parse_segment (out unowned Gst.Segment segment); public void parse_segment_done (out Gst.Format format, out int64 position); public void parse_sink_message (out Gst.Message msg); public void parse_step (out Gst.Format format, out uint64 amount, out double rate, out bool flush, out bool intermediate); - public void parse_stream_config (out Gst.StreamConfigFlags flags); - public bool parse_stream_config_setup_data (out unowned Gst.Buffer buf); public void parse_stream_start (out string stream_id); public void parse_tag (out unowned Gst.TagList taglist); public void parse_toc (out Gst.Toc toc, out bool updated); @@ -1014,14 +1009,11 @@ namespace Gst { [CCode (has_construct_function = false)] public Event.segment_done (Gst.Format format, int64 position); public void set_seqnum (uint32 seqnum); - public void set_stream_config_setup_data (Gst.Buffer buf); [CCode (has_construct_function = false)] public Event.sink_message (string name, Gst.Message msg); [CCode (has_construct_function = false)] public Event.step (Gst.Format format, uint64 amount, double rate, bool flush, bool intermediate); [CCode (has_construct_function = false)] - public Event.stream_config (Gst.StreamConfigFlags flags); - [CCode (has_construct_function = false)] public Event.stream_start (string stream_id); [CCode (has_construct_function = false)] public Event.tag (owned Gst.TagList taglist); @@ -1130,7 +1122,7 @@ namespace Gst { [CCode (has_construct_function = false)] public Message.custom (Gst.MessageType type, Gst.Object src, owned Gst.Structure structure); [CCode (has_construct_function = false)] - public Message.duration (Gst.Object src, Gst.Format format, int64 duration); + public Message.duration_changed (Gst.Object src); [CCode (has_construct_function = false)] public Message.element (Gst.Object src, owned Gst.Structure structure); [CCode (has_construct_function = false)] @@ -1152,7 +1144,6 @@ namespace Gst { public void parse_buffering_stats (out Gst.BufferingMode mode, out int avg_in, out int avg_out, out int64 buffering_left); public void parse_clock_lost (out unowned Gst.Clock clock); public void parse_clock_provide (out unowned Gst.Clock clock, out bool ready); - public void parse_duration (out Gst.Format format, out int64 duration); public void parse_error (out GLib.Error gerror, out string debug); public void parse_info (out GLib.Error gerror, out string debug); public void parse_new_clock (out unowned Gst.Clock clock); @@ -1311,6 +1302,7 @@ namespace Gst { [CCode (cname = "gst_pad_link_full")] public Gst.PadLinkReturn link (Gst.Pad sinkpad, Gst.PadLinkCheck flags = Gst.PadLinkCheck.DEFAULT); public void mark_reconfigure (); + public static unowned string mode_get_name (Gst.PadMode mode); public bool needs_reconfigure (); public bool pause_task (); public bool peer_query (Gst.Query query); @@ -1520,6 +1512,7 @@ namespace Gst { public uint get_n_scheduling_modes (); public unowned Gst.Structure get_structure (); public bool has_scheduling_mode (Gst.PadMode mode); + public bool has_scheduling_mode_with_flags (Gst.PadMode mode, Gst.SchedulingFlags flags); [CCode (has_construct_function = false)] public Query.latency (); public void parse_accept_caps (out Gst.Caps caps); @@ -1579,7 +1572,6 @@ namespace Gst { [CCode (has_construct_function = false)] protected Registry (); public bool add_feature (owned Gst.PluginFeature feature); - public void add_path (string path); public bool add_plugin (owned Gst.Plugin plugin); public bool check_feature_version (string feature_name, uint min_major, uint min_minor, uint min_micro); public GLib.List<Gst.PluginFeature> feature_filter ([CCode (delegate_target_pos = 2.1)] Gst.PluginFeatureFilter filter, bool first); @@ -1591,7 +1583,6 @@ namespace Gst { public GLib.List<Gst.PluginFeature> get_feature_list (GLib.Type type); public GLib.List<Gst.PluginFeature> get_feature_list_by_plugin (string name); public uint32 get_feature_list_cookie (); - public GLib.List<weak string> get_path_list (); public GLib.List<Gst.Plugin> get_plugin_list (); public Gst.Plugin lookup (string filename); public Gst.PluginFeature lookup_feature (string name); @@ -1851,7 +1842,7 @@ namespace Gst { public abstract GLib.Object get_child_by_name (string name); public abstract uint get_children_count (); public GLib.Value get_property (string name); - public static bool lookup (GLib.Object object, string name, out GLib.Object target, out unowned GLib.ParamSpec pspec); + public bool lookup (string name, out GLib.Object target, out unowned GLib.ParamSpec pspec); public void set_property (string name, GLib.Value value); [HasEmitter] public virtual signal void child_added (GLib.Object child, string name); @@ -2231,7 +2222,6 @@ namespace Gst { FLUSH_STOP, STREAM_START, CAPS, - STREAM_CONFIG, SEGMENT, TAG, BUFFERSIZE, @@ -2360,7 +2350,7 @@ namespace Gst { ELEMENT, SEGMENT_START, SEGMENT_DONE, - DURATION, + DURATION_CHANGED, LATENCY, ASYNC_START, ASYNC_DONE, @@ -2627,11 +2617,6 @@ namespace Gst { ASYNC, NO_PREROLL } - [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STREAM_CONFIG_FLAG_", has_type_id = false)] - public enum StreamConfigFlags { - [CCode (cname = "GST_STREAM_CONFIG_FLAG_NONE")] - STREAM_CONFIG_FLAG_NONE - } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STREAM_STATUS_TYPE_", has_type_id = false)] public enum StreamStatusType { CREATE, @@ -2996,8 +2981,6 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h", cname = "GST_VALUE_UNORDERED")] public const int VALUE_UNORDERED; [CCode (cheader_filename = "gst/gst.h")] - public static bool child_proxy_lookup (GLib.Object object, string name, out GLib.Object target, out unowned GLib.ParamSpec pspec); - [CCode (cheader_filename = "gst/gst.h")] public static void deinit (); [CCode (cheader_filename = "gst/gst.h")] public static string error_get_message (GLib.Quark domain, int code); diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi index 34acd172b..464763848 100644 --- a/vapi/gstreamer-app-1.0.vapi +++ b/vapi/gstreamer-app-1.0.vapi @@ -13,6 +13,10 @@ namespace Gst { public bool get_emit_signals (); public uint get_max_buffers (); public bool is_eos (); + [NoWrapper] + public virtual Gst.FlowReturn new_preroll (); + [NoWrapper] + public virtual Gst.FlowReturn new_sample (); public void set_caps (Gst.Caps caps); public void set_drop (bool drop); public void set_emit_signals (bool emit); @@ -23,8 +27,6 @@ namespace Gst { [NoAccessorMethod] public virtual bool eos { get; } public uint max_buffers { get; set; } - public virtual signal void new_preroll (); - public virtual signal void new_sample (); [HasEmitter] public virtual signal Gst.Sample pull_preroll (); [HasEmitter] diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index 5e307ec82..b67cd5e8e 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -109,18 +109,19 @@ namespace Gst { public Gst.FlowReturn finish_frame (Gst.Buffer buf, int frames); [NoWrapper] public virtual void flush (bool hard); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); public Gst.Audio.Info get_audio_info (); public int get_delay (); public bool get_drainable (); public int get_estimate_rate (); public void get_latency (out Gst.ClockTime min, out Gst.ClockTime max); public int get_max_errors (); - public int64 get_min_latency (); + public Gst.ClockTime get_min_latency (); public bool get_needs_format (); public void get_parse_state (bool sync, bool eos); public bool get_plc (); public int get_plc_aware (); - public int64 get_tolerance (); + public Gst.ClockTime get_tolerance (); [NoWrapper] public virtual Gst.FlowReturn handle_frame (Gst.Buffer buffer); public void merge_tags (Gst.TagList tags, Gst.TagMergeMode mode); @@ -139,12 +140,12 @@ namespace Gst { public virtual bool set_format (Gst.Caps caps); public void set_latency (Gst.ClockTime min, Gst.ClockTime max); public void set_max_errors (int num); - public void set_min_latency (int64 num); + public void set_min_latency (Gst.ClockTime num); public void set_needs_format (bool enabled); public bool set_output_format (Gst.Audio.Info info); public void set_plc (bool enabled); public void set_plc_aware (bool plc); - public void set_tolerance (int64 tolerance); + public void set_tolerance (Gst.ClockTime tolerance); [NoWrapper] public virtual bool sink_event (Gst.Event event); [NoWrapper] @@ -175,6 +176,7 @@ namespace Gst { public Gst.FlowReturn finish_frame (Gst.Buffer buffer, int samples); [NoWrapper] public virtual void flush (); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); public Gst.Audio.Info get_audio_info (); public bool get_drainable (); public int get_frame_max (); @@ -186,7 +188,7 @@ namespace Gst { public int get_lookahead (); public bool get_mark_granule (); public bool get_perfect_timestamp (); - public int64 get_tolerance (); + public Gst.ClockTime get_tolerance (); [NoWrapper] public virtual Gst.Caps getcaps (Gst.Caps filter); [NoWrapper] @@ -214,7 +216,7 @@ namespace Gst { public void set_mark_granule (bool enabled); public bool set_output_format (Gst.Caps caps); public void set_perfect_timestamp (bool enabled); - public void set_tolerance (int64 tolerance); + public void set_tolerance (Gst.ClockTime tolerance); [NoWrapper] public virtual bool sink_event (Gst.Event event); [NoWrapper] @@ -273,6 +275,7 @@ namespace Gst { public size_t size; public Gst.Audio.RingBufferSpec spec; public int state; + public Gst.ClockTime timestamps; public int waiting; [CCode (has_construct_function = false)] protected RingBuffer (); @@ -290,19 +293,22 @@ namespace Gst { public bool device_is_open (); public bool is_acquired (); public bool is_active (); + public bool is_flushing (); public void may_start (bool allowed); public virtual bool open_device (); public static bool parse_caps (Gst.Audio.RingBufferSpec spec, Gst.Caps caps); public virtual bool pause (); public bool prepare_read (int segment, uint8 readptr, int len); - public uint read (uint64 sample, uint8 data, uint len); + public uint read (uint64 sample, uint8 data, uint len, Gst.ClockTime timestamp); public virtual bool release (); [NoWrapper] public virtual bool resume (); public uint64 samples_done (); + public void set_callback (Gst.Audio.RingBufferCallback cb); public void set_channel_positions (Gst.Audio.ChannelPosition position); public void set_flushing (bool flushing); public void set_sample (uint64 sample); + public void set_timestamp (int readseg, Gst.ClockTime timestamp); public virtual bool start (); public virtual bool stop (); } @@ -340,7 +346,7 @@ namespace Gst { [NoWrapper] public virtual bool prepare (Gst.Audio.RingBufferSpec spec); [NoWrapper] - public virtual uint read ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "guint", type = "gpointer")] uint8[] data); + public virtual uint read ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "guint", type = "gpointer")] uint8[] data, Gst.ClockTime timestamp); [NoWrapper] public virtual void reset (); [NoWrapper] @@ -611,7 +617,7 @@ namespace Gst { [CCode (cheader_filename = "gst/audio/audio-channels.h,gst/audio/audio-enumtypes.h,gst/audio/audio-format.h,gst/audio/audio-info.h,gst/audio/audio.h,gst/audio/gstaudiobasesink.h,gst/audio/gstaudiobasesrc.h,gst/audio/gstaudiocdsrc.h,gst/audio/gstaudioclock.h,gst/audio/gstaudiodecoder.h,gst/audio/gstaudioencoder.h,gst/audio/gstaudiofilter.h,gst/audio/gstaudioiec61937.h,gst/audio/gstaudiometa.h,gst/audio/gstaudioringbuffer.h,gst/audio/gstaudiosink.h,gst/audio/gstaudiosrc.h,gst/audio/streamvolume.h", cname = "GST_TAG_CDDA_TRACK_TAGS")] public const string TAG_CDDA_TRACK_TAGS; [CCode (cheader_filename = "gst/audio/audio-channels.h,gst/audio/audio-enumtypes.h,gst/audio/audio-format.h,gst/audio/audio-info.h,gst/audio/audio.h,gst/audio/gstaudiobasesink.h,gst/audio/gstaudiobasesrc.h,gst/audio/gstaudiocdsrc.h,gst/audio/gstaudioclock.h,gst/audio/gstaudiodecoder.h,gst/audio/gstaudioencoder.h,gst/audio/gstaudiofilter.h,gst/audio/gstaudioiec61937.h,gst/audio/gstaudiometa.h,gst/audio/gstaudioringbuffer.h,gst/audio/gstaudiosink.h,gst/audio/gstaudiosrc.h,gst/audio/streamvolume.h", cname = "gst_audio_buffer_clip")] - public static Gst.Buffer audio_buffer_clip (Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf); + public static Gst.Buffer audio_buffer_clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf); [CCode (cheader_filename = "gst/audio/audio-channels.h,gst/audio/audio-enumtypes.h,gst/audio/audio-format.h,gst/audio/audio-info.h,gst/audio/audio.h,gst/audio/gstaudiobasesink.h,gst/audio/gstaudiobasesrc.h,gst/audio/gstaudiocdsrc.h,gst/audio/gstaudioclock.h,gst/audio/gstaudiodecoder.h,gst/audio/gstaudioencoder.h,gst/audio/gstaudiofilter.h,gst/audio/gstaudioiec61937.h,gst/audio/gstaudiometa.h,gst/audio/gstaudioringbuffer.h,gst/audio/gstaudiosink.h,gst/audio/gstaudiosrc.h,gst/audio/streamvolume.h", cname = "gst_audio_buffer_reorder_channels")] public static bool audio_buffer_reorder_channels (Gst.Buffer buffer, Gst.Audio.Format format, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to); [CCode (cheader_filename = "gst/audio/audio-channels.h,gst/audio/audio-enumtypes.h,gst/audio/audio-format.h,gst/audio/audio-info.h,gst/audio/audio.h,gst/audio/gstaudiobasesink.h,gst/audio/gstaudiobasesrc.h,gst/audio/gstaudiocdsrc.h,gst/audio/gstaudioclock.h,gst/audio/gstaudiodecoder.h,gst/audio/gstaudioencoder.h,gst/audio/gstaudiofilter.h,gst/audio/gstaudioiec61937.h,gst/audio/gstaudiometa.h,gst/audio/gstaudioringbuffer.h,gst/audio/gstaudiosink.h,gst/audio/gstaudiosrc.h,gst/audio/streamvolume.h", cname = "gst_audio_channel_positions_from_mask")] diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi index 99b735d5c..239f7fe5d 100644 --- a/vapi/gstreamer-base-1.0.vapi +++ b/vapi/gstreamer-base-1.0.vapi @@ -371,6 +371,7 @@ namespace Gst { public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency); public void set_min_frame_size (uint min_size); public void set_passthrough (bool passthrough); + public void set_pts_interpolation (bool pts_interpolate); [NoWrapper] public virtual bool set_sink_caps (Gst.Caps caps); public void set_syncable (bool syncable); @@ -486,7 +487,7 @@ namespace Gst { public Gst.FlowReturn wait (Gst.ClockTime time, out Gst.ClockTimeDiff jitter); public Gst.ClockReturn wait_clock (Gst.ClockTime time, out Gst.ClockTimeDiff jitter); [NoWrapper] - public virtual Gst.FlowReturn wait_eos (Gst.Event event); + public virtual Gst.FlowReturn wait_event (Gst.Event event); public Gst.FlowReturn wait_preroll (); [NoAccessorMethod] public bool @async { get; set; } @@ -533,7 +534,9 @@ namespace Gst { public virtual Gst.FlowReturn fill (uint64 offset, uint size, Gst.Buffer buf); [NoWrapper] public virtual Gst.Caps fixate (Gst.Caps caps); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); public uint get_blocksize (); + public Gst.BufferPool get_buffer_pool (); [NoWrapper] public virtual Gst.Caps get_caps (Gst.Caps filter); public bool get_do_timestamp (); @@ -598,6 +601,8 @@ namespace Gst { public virtual bool filter_meta (Gst.Query query, GLib.Type api, Gst.Structure @params); [NoWrapper] public virtual Gst.Caps fixate_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps othercaps); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); + public Gst.BufferPool get_buffer_pool (); [NoWrapper] public virtual bool get_unit_size (Gst.Caps caps, size_t size); public bool is_in_place (); diff --git a/vapi/gstreamer-tag-1.0.vapi b/vapi/gstreamer-tag-1.0.vapi index 4241fa056..c37084f40 100644 --- a/vapi/gstreamer-tag-1.0.vapi +++ b/vapi/gstreamer-tag-1.0.vapi @@ -89,9 +89,7 @@ namespace Gst { [CCode (cheader_filename = "gst/tag/gsttagdemux.h,gst/tag/gsttagmux.h,gst/tag/tag.h,gst/tag/xmpwriter.h")] public static Gst.Buffer to_vorbiscomment_buffer (Gst.TagList list, uint8 id_data, uint id_data_length, string vendor_string); [CCode (cheader_filename = "gst/tag/gsttagdemux.h,gst/tag/gsttagmux.h,gst/tag/tag.h,gst/tag/xmpwriter.h")] - public static Gst.Buffer to_xmp_buffer (Gst.TagList list, bool read_only); - [CCode (cheader_filename = "gst/tag/gsttagdemux.h,gst/tag/gsttagmux.h,gst/tag/tag.h,gst/tag/xmpwriter.h")] - public static Gst.Buffer to_xmp_buffer_full (Gst.TagList list, bool read_only, string schemas); + public static Gst.Buffer to_xmp_buffer (Gst.TagList list, bool read_only, string schemas); } namespace MusicBrainz { [CCode (cheader_filename = "gst/tag/gsttagdemux.h,gst/tag/gsttagmux.h,gst/tag/tag.h,gst/tag/xmpwriter.h", cname = "GST_TAG_MUSICBRAINZ_ALBUMARTISTID")] diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index 74f9ec619..4d23e955d 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -62,8 +62,11 @@ namespace Gst { [NoWrapper] public virtual Gst.FlowReturn finish (); public Gst.FlowReturn finish_frame (owned Gst.Video.CodecFrame frame); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); + public Gst.BufferPool get_buffer_pool (); public int get_estimate_rate (); public Gst.Video.CodecFrame get_frame (int frame_number); + public GLib.List<Gst.Video.CodecFrame> get_frames (); public void get_latency (out Gst.ClockTime min_latency, out Gst.ClockTime max_latency); public Gst.ClockTimeDiff get_max_decode_time (Gst.Video.CodecFrame frame); public int get_max_errors (); @@ -113,8 +116,10 @@ namespace Gst { [NoWrapper] public virtual Gst.FlowReturn finish (); public Gst.FlowReturn finish_frame (owned Gst.Video.CodecFrame frame); + public void get_allocator (out Gst.Allocator allocator, out Gst.AllocationParams @params); public bool get_discont (); public Gst.Video.CodecFrame get_frame (int frame_number); + public GLib.List<Gst.Video.CodecFrame> get_frames (); public void get_latency (out Gst.ClockTime min_latency, out Gst.ClockTime max_latency); public Gst.Video.CodecFrame get_oldest_frame (); public Gst.Video.CodecState get_output_state (); @@ -181,15 +186,19 @@ namespace Gst { [Compact] [GIR (name = "VideoOverlayRectangle")] public class OverlayRectangle { - [CCode (has_construct_function = false)] - public OverlayRectangle.argb (Gst.Buffer pixels, int render_x, int render_y, uint render_width, uint render_height, Gst.Video.OverlayFormatFlags flags); public Gst.Video.OverlayRectangle copy (); public Gst.Video.OverlayFormatFlags get_flags (); public float get_global_alpha (); public unowned Gst.Buffer get_pixels_argb (Gst.Video.OverlayFormatFlags flags); + public unowned Gst.Buffer get_pixels_ayuv (Gst.Video.OverlayFormatFlags flags); + public unowned Gst.Buffer get_pixels_raw (Gst.Video.OverlayFormatFlags flags); public unowned Gst.Buffer get_pixels_unscaled_argb (Gst.Video.OverlayFormatFlags flags); + public unowned Gst.Buffer get_pixels_unscaled_ayuv (Gst.Video.OverlayFormatFlags flags); + public unowned Gst.Buffer get_pixels_unscaled_raw (Gst.Video.OverlayFormatFlags flags); public bool get_render_rectangle (out int render_x, out int render_y, out uint render_width, out uint render_height); public uint get_seqnum (); + [CCode (has_construct_function = false)] + public OverlayRectangle.raw (Gst.Buffer pixels, int render_x, int render_y, uint render_width, uint render_height, Gst.Video.OverlayFormatFlags flags); public void set_global_alpha (float global_alpha); public void set_render_rectangle (int render_x, int render_y, uint render_width, uint render_height); } @@ -387,6 +396,7 @@ namespace Gst { public weak size_t[] offset; [CCode (array_length = false, array_null_terminated = true)] public weak int[] stride; + public void align (Gst.Video.Alignment align); public bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, int64 dest_value); public bool from_caps (Gst.Caps caps); public void init (); @@ -561,7 +571,9 @@ namespace Gst { [CCode (cname = "GST_VIDEO_FORMAT_r210")] R210, I420_10BE, - I420_10LE + I420_10LE, + I422_10BE, + I422_10LE } [CCode (cheader_filename = "gst/video/colorbalance.h,gst/video/colorbalancechannel.h,gst/video/gstvideodecoder.h,gst/video/gstvideoencoder.h,gst/video/gstvideofilter.h,gst/video/gstvideometa.h,gst/video/gstvideopool.h,gst/video/gstvideosink.h,gst/video/gstvideoutils.h,gst/video/navigation.h,gst/video/video-blend.h,gst/video/video-color.h,gst/video/video-enumtypes.h,gst/video/video-event.h,gst/video/video-format.h,gst/video/video-frame.h,gst/video/video-info.h,gst/video/video-overlay-composition.h,gst/video/video.h,gst/video/videoorientation.h,gst/video/videooverlay.h", cprefix = "GST_VIDEO_FORMAT_FLAG_", type_id = "gst_video_format_flags_get_type ()")] [Flags] diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi index c3364c054..9e76baabb 100644 --- a/vapi/libgdata.vapi +++ b/vapi/libgdata.vapi @@ -98,7 +98,7 @@ namespace GData { public unowned string get_role (); public void get_scope (out unowned string type, out unowned string value); public void set_role (string role); - public void set_scope (string type, string value); + public void set_scope (string type, string? value); public int64 edited { get; } public string role { get; set; } [NoAccessorMethod] diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 8ed1bfd2c..01b9232c6 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -293,8 +293,8 @@ namespace Soup { public class CookieJar : GLib.Object, Soup.SessionFeature { [CCode (has_construct_function = false)] public CookieJar (); - public void add_cookie (Soup.Cookie cookie); - public void add_cookie_with_first_party (Soup.URI first_party, Soup.Cookie cookie); + public void add_cookie (owned Soup.Cookie cookie); + public void add_cookie_with_first_party (Soup.URI first_party, owned Soup.Cookie cookie); public GLib.SList<Soup.Cookie> all_cookies (); public void delete_cookie (Soup.Cookie cookie); public Soup.CookieJarAcceptPolicy get_accept_policy (); @@ -507,6 +507,16 @@ namespace Soup { public bool get_part (int part, out unowned Soup.MessageHeaders headers, out unowned Soup.Buffer body); public void to_message (Soup.MessageHeaders dest_headers, Soup.MessageBody dest_body); } + [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_multipart_input_stream_get_type ()")] + public class MultipartInputStream : GLib.FilterInputStream, GLib.PollableInputStream { + [CCode (has_construct_function = false)] + public MultipartInputStream (Soup.Message msg, GLib.InputStream base_stream); + public unowned Soup.MessageHeaders get_headers (); + public GLib.InputStream next_part (GLib.Cancellable? cancellable = null) throws GLib.Error; + public async GLib.InputStream next_part_async (int io_priority, GLib.Cancellable? cancellable) throws GLib.Error; + [NoAccessorMethod] + public Soup.Message message { owned get; construct; } + } [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_proxy_resolver_default_get_type ()")] public class ProxyResolverDefault : GLib.Object, Soup.ProxyURIResolver, Soup.SessionFeature { [CCode (has_construct_function = false)] @@ -799,7 +809,7 @@ namespace Soup { } [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)] public struct MessageHeadersIter { - public void init (Soup.MessageHeaders hdrs); + public static void init (out Soup.MessageHeadersIter iter, Soup.MessageHeaders hdrs); public bool next (out unowned string name, out unowned string value); } [CCode (cheader_filename = "libsoup/soup.h", has_type_id = false)] @@ -965,7 +975,8 @@ namespace Soup { OVERWRITE_CHUNKS, CONTENT_DECODED, CERTIFICATE_TRUSTED, - NEW_CONNECTION + NEW_CONNECTION, + IDEMPOTENT } [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_MESSAGE_HEADERS_", type_id = "soup_message_headers_type_get_type ()")] public enum MessageHeadersType { @@ -1174,6 +1185,8 @@ namespace Soup { public const int MISC_H; [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MULTIPART_H")] public const int MULTIPART_H; + [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MULTIPART_INPUT_STREAM_H")] + public const int MULTIPART_INPUT_STREAM_H; [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_PASSWORD_MANAGER_H")] public const int PASSWORD_MANAGER_H; [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_PROXY_RESOLVER_DEFAULT_H")] diff --git a/vapi/mx-1.0.vapi b/vapi/mx-1.0.vapi index 546496873..fdc4a46b2 100644 --- a/vapi/mx-1.0.vapi +++ b/vapi/mx-1.0.vapi @@ -532,7 +532,7 @@ namespace Mx { public bool set_from_buffer ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5, array_length_type = "gsize", type = "guchar*")] owned uint8[]? buffer, GLib.DestroyNotify? buffer_free_func) throws GLib.Error; public bool set_from_buffer_at_size ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5, array_length_type = "gsize", type = "guchar*")] owned uint8[]? buffer, GLib.DestroyNotify? buffer_free_func, int width, int height) throws GLib.Error; public bool set_from_cogl_texture (Cogl.Handle texture); - public bool set_from_data ([CCode (array_length = false, type = "guchar*")] uint8[]? data, Cogl.PixelFormat pixel_format, int width, int height, int rowstride) throws GLib.Error; + public bool set_from_data ([CCode (array_length = false, type = "const guchar*")] uint8[]? data, Cogl.PixelFormat pixel_format, int width, int height, int rowstride) throws GLib.Error; public bool set_from_file (string filename) throws GLib.Error; public bool set_from_file_at_size (string filename, int width, int height) throws GLib.Error; public void set_image_rotation (float rotation); diff --git a/vapi/packagekit-glib2.vapi b/vapi/packagekit-glib2.vapi index bbe6510e9..c98439754 100644 --- a/vapi/packagekit-glib2.vapi +++ b/vapi/packagekit-glib2.vapi @@ -64,8 +64,6 @@ namespace Pk { public Pk.Results download_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_download_packages_async")] public async void download_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_error_quark")] - public static GLib.Quark error_quark (); [CCode (cname = "pk_client_generic_finish")] public Pk.Results generic_finish (GLib.AsyncResult res) throws GLib.Error; [CCode (cname = "pk_client_get_background")] @@ -107,7 +105,7 @@ namespace Pk { [CCode (cname = "pk_client_get_packages_async")] public async void get_packages_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_get_progress")] - public Pk.Progress get_progress (string transaction_id, GLib.Cancellable? cancellable) throws GLib.Error; + public Pk.Progress get_progress (string transaction_id, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_client_get_progress_async")] public async Pk.Progress get_progress_async (string transaction_id, GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_client_get_repo_list")] @@ -127,13 +125,13 @@ namespace Pk { [CCode (cname = "pk_client_get_updates_async")] public async void get_updates_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_install_files")] - public Pk.Results install_files (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; + public Pk.Results install_files (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_install_files_async")] - public async void install_files_async (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + public async void install_files_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_install_packages")] - public Pk.Results install_packages (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; + public Pk.Results install_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_install_packages_async")] - public async void install_packages_async (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + public async void install_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_install_signature")] public Pk.Results install_signature (Pk.SigType type, string key_id, string package_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_install_signature_async")] @@ -143,13 +141,13 @@ namespace Pk { [CCode (cname = "pk_client_refresh_cache_async")] public async void refresh_cache_async (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_remove_packages")] - public Pk.Results remove_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; + public Pk.Results remove_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_remove_packages_async")] - public async void remove_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + public async void remove_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_repair_system")] - public Pk.Results repair_system (bool only_trusted, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; + public Pk.Results repair_system (Pk.Bitfield transaction_flags, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_repair_system_async")] - public async void repair_system_async (bool only_trusted, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + public async void repair_system_async (Pk.Bitfield transaction_flags, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_repo_enable")] public Pk.Results repo_enable (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_repo_enable_async")] @@ -162,10 +160,6 @@ namespace Pk { public Pk.Results resolve (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_resolve_async")] public async void resolve_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_rollback")] - public Pk.Results rollback (string transaction_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_rollback_async")] - public async void rollback_async (string transaction_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_search_details")] public Pk.Results search_details (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_search_details_async")] @@ -190,36 +184,12 @@ namespace Pk { public void set_interactive (bool interactive); [CCode (cname = "pk_client_set_locale")] public void set_locale (string locale); - [CCode (cname = "pk_client_simulate_install_files")] - public Pk.Results simulate_install_files ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_simulate_install_files_async")] - public async void simulate_install_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_simulate_install_packages")] - public Pk.Results simulate_install_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_simulate_install_packages_async")] - public async void simulate_install_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_simulate_remove_packages")] - public Pk.Results simulate_remove_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_simulate_remove_packages_async")] - public async void simulate_remove_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_simulate_repair_system")] - public Pk.Results simulate_repair_system (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_simulate_repair_system_async")] - public async void simulate_repair_system_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_simulate_update_packages")] - public Pk.Results simulate_update_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_simulate_update_packages_async")] - public async void simulate_update_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_test")] public static void test (void* user_data); [CCode (cname = "pk_client_update_packages")] - public Pk.Results update_packages (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; + public Pk.Results update_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_update_packages_async")] - public async void update_packages_async (bool only_trusted, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_client_update_system")] - public Pk.Results update_system (bool only_trusted, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; - [CCode (cname = "pk_client_update_system_async")] - public async void update_system_async (bool only_trusted, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + public async void update_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_client_upgrade_system")] public Pk.Results upgrade_system (string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_client_upgrade_system_async")] @@ -256,14 +226,12 @@ namespace Pk { public async Pk.Authorize can_authorize_async (string action_id, GLib.Cancellable? cancellable) throws GLib.Error; [NoWrapper] public virtual void connection_changed (bool connected); - [CCode (cname = "pk_control_error_quark")] - public static GLib.Quark error_quark (); [CCode (cname = "pk_control_get_daemon_state_async")] public async string get_daemon_state_async (GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_control_get_network_state_async")] public async Pk.Network get_network_state_async (GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_control_get_properties")] - public bool get_properties (GLib.Cancellable? cancellable) throws GLib.Error; + public bool get_properties (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_control_get_properties_async")] public async bool get_properties_async (GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_control_get_tid_async")] @@ -271,25 +239,21 @@ namespace Pk { [CCode (cname = "pk_control_get_time_since_action_async")] public async uint get_time_since_action_async (Pk.Role role, GLib.Cancellable? cancellable) throws GLib.Error; [CCode (array_length = false, array_null_terminated = true, cname = "pk_control_get_transaction_list")] - public string[] get_transaction_list (GLib.Cancellable? cancellable) throws GLib.Error; + public string[] get_transaction_list (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (array_length = false, array_null_terminated = true, cname = "pk_control_get_transaction_list_async")] public async string[] get_transaction_list_async (GLib.Cancellable? cancellable) throws GLib.Error; [NoWrapper] public virtual void network_state_changed (); [CCode (cname = "pk_control_set_proxy")] - public bool set_proxy (string proxy_http, string proxy_ftp, GLib.Cancellable? cancellable) throws GLib.Error; + public bool set_proxy (string proxy_http, string proxy_ftp, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_control_set_proxy2")] - public bool set_proxy2 (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, GLib.Cancellable? cancellable) throws GLib.Error; + public bool set_proxy2 (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_control_set_proxy2_async")] public async void set_proxy2_async (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, GLib.Cancellable? cancellable); [CCode (cname = "pk_control_set_proxy_async")] public async bool set_proxy_async (string proxy_http, string proxy_ftp, GLib.Cancellable? cancellable) throws GLib.Error; - [CCode (cname = "pk_control_set_root")] - public bool set_root (string root, GLib.Cancellable? cancellable) throws GLib.Error; - [CCode (cname = "pk_control_set_root_async")] - public async bool set_root_async (string root, GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_control_suggest_daemon_quit")] - public bool suggest_daemon_quit (GLib.Cancellable? cancellable) throws GLib.Error; + public bool suggest_daemon_quit (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_control_suggest_daemon_quit_async")] public async bool suggest_daemon_quit_async (GLib.Cancellable? cancellable) throws GLib.Error; [CCode (cname = "pk_control_test")] @@ -310,8 +274,9 @@ namespace Pk { public uint64 groups { get; set; } [NoAccessorMethod] public virtual bool locked { get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string mime_types { owned get; set; } + public string[] mime_types { owned get; set; } [NoAccessorMethod] public uint network_state { get; set; } [NoAccessorMethod] @@ -332,11 +297,11 @@ namespace Pk { [CCode (cname = "pk_desktop_new", has_construct_function = false)] public Desktop (); [CCode (cname = "pk_desktop_get_files_for_package")] - public GLib.GenericArray<void*> get_files_for_package (string package) throws GLib.Error; + public GLib.GenericArray<weak void*> get_files_for_package (string package) throws GLib.Error; [CCode (cname = "pk_desktop_get_package_for_file")] public string get_package_for_file (string filename) throws GLib.Error; [CCode (cname = "pk_desktop_get_shown_for_package")] - public GLib.GenericArray<void*> get_shown_for_package (string package) throws GLib.Error; + public GLib.GenericArray<weak void*> get_shown_for_package (string package) throws GLib.Error; [CCode (cname = "pk_desktop_open_database")] public bool open_database () throws GLib.Error; [CCode (cname = "pk_desktop_test")] @@ -363,10 +328,6 @@ namespace Pk { public class DistroUpgrade : Pk.Source { [CCode (cname = "pk_distro_upgrade_new", has_construct_function = false)] public DistroUpgrade (); - [CCode (cname = "pk_distro_upgrade_enum_from_string")] - public static Pk.DistroUpgradeEnum enum_from_string (string upgrade); - [CCode (cname = "pk_distro_upgrade_enum_to_string")] - public static unowned string enum_to_string (Pk.DistroUpgradeEnum upgrade); [CCode (cname = "pk_distro_upgrade_get_id")] public unowned string get_id (); [CCode (cname = "pk_distro_upgrade_get_state")] @@ -384,10 +345,6 @@ namespace Pk { public class Error : Pk.Source { [CCode (cname = "pk_error_new", has_construct_function = false)] public Error (); - [CCode (cname = "pk_error_enum_from_string")] - public static Pk.ErrorEnum enum_from_string (string code); - [CCode (cname = "pk_error_enum_to_string")] - public static unowned string enum_to_string (Pk.ErrorEnum code); [CCode (cname = "pk_error_get_code")] public Pk.ErrorEnum get_code (); [CCode (cname = "pk_error_get_details")] @@ -420,6 +377,23 @@ namespace Pk { [NoAccessorMethod] public string package_id { owned get; set; } } + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_item_progress_get_type ()")] + public class ItemProgress : Pk.Source { + [CCode (cname = "pk_item_progress_new", has_construct_function = false)] + public ItemProgress (); + [CCode (cname = "pk_item_progress_get_package_id")] + public unowned string get_package_id (); + [CCode (cname = "pk_item_progress_get_percentage")] + public uint get_percentage (); + [CCode (cname = "pk_item_progress_get_status")] + public Pk.Status get_status (); + [NoAccessorMethod] + public string package_id { owned get; set; } + [NoAccessorMethod] + public uint percentage { get; set; } + [NoAccessorMethod] + public uint status { get; set; } + } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_media_change_required_get_type ()")] public class MediaChangeRequired : Pk.Source { [CCode (cname = "pk_media_change_required_new", has_construct_function = false)] @@ -435,10 +409,6 @@ namespace Pk { public class Message : Pk.Source { [CCode (cname = "pk_message_new", has_construct_function = false)] public Message (); - [CCode (cname = "pk_message_enum_from_string")] - public static Pk.MessageEnum enum_from_string (string message); - [CCode (cname = "pk_message_enum_to_string")] - public static unowned string enum_to_string (Pk.MessageEnum message); [CCode (cname = "pk_message_get_details")] public unowned string get_details (); [CCode (cname = "pk_message_get_kind")] @@ -520,12 +490,14 @@ namespace Pk { public uint64 size { get; set; } [NoAccessorMethod] public string summary { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string update_bugzilla_url { owned get; set; } + public string[] update_bugzilla_urls { owned get; set; } [NoAccessorMethod] public string update_changelog { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string update_cve_url { owned get; set; } + public string[] update_cve_urls { owned get; set; } [NoAccessorMethod] public string update_issued { owned get; set; } [NoAccessorMethod] @@ -540,8 +512,9 @@ namespace Pk { public string update_updated { owned get; set; } [NoAccessorMethod] public string update_updates { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string update_vendor_url { owned get; set; } + public string[] update_vendor_urls { owned get; set; } [NoAccessorMethod] public string url { owned get; set; } public virtual signal void changed (); @@ -554,6 +527,8 @@ namespace Pk { public bool add_package (Pk.Package package); [CCode (cname = "pk_package_sack_add_package_by_id")] public bool add_package_by_id (string package_id) throws GLib.Error; + [CCode (cname = "pk_package_sack_add_packages_from_file")] + public bool add_packages_from_file (GLib.File file) throws GLib.Error; [NoWrapper] public virtual void changed (); [CCode (cname = "pk_package_sack_clear")] @@ -565,9 +540,9 @@ namespace Pk { [CCode (cname = "pk_package_sack_find_by_id")] public Pk.Package find_by_id (string package_id); [CCode (cname = "pk_package_sack_get_array")] - public GLib.GenericArray<weak void*> get_array (); + public GLib.GenericArray<weak Pk.Package> get_array (); [CCode (cname = "pk_package_sack_get_details")] - public bool get_details (GLib.Cancellable? cancellable) throws GLib.Error; + public bool get_details (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_package_sack_get_details_async")] public async void get_details_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (array_length = false, array_null_terminated = true, cname = "pk_package_sack_get_ids")] @@ -577,7 +552,7 @@ namespace Pk { [CCode (cname = "pk_package_sack_get_total_bytes")] public uint64 get_total_bytes (); [CCode (cname = "pk_package_sack_get_update_detail")] - public bool get_update_detail (GLib.Cancellable? cancellable) throws GLib.Error; + public bool get_update_detail (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_package_sack_get_update_detail_async")] public async void get_update_detail_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_package_sack_merge_generic_finish")] @@ -589,7 +564,7 @@ namespace Pk { [CCode (cname = "pk_package_sack_remove_package_by_id")] public bool remove_package_by_id (string package_id); [CCode (cname = "pk_package_sack_resolve")] - public bool resolve (GLib.Cancellable? cancellable) throws GLib.Error; + public bool resolve (GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (cname = "pk_package_sack_resolve_async")] public async void resolve_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); [CCode (cname = "pk_package_sack_sort")] @@ -609,10 +584,12 @@ namespace Pk { public bool set_allow_cancel (bool allow_cancel); [CCode (cname = "pk_progress_set_caller_active")] public bool set_caller_active (bool caller_active); + [CCode (cname = "pk_progress_set_download_size_remaining")] + public bool set_download_size_remaining (uint64 download_size_remaining); [CCode (cname = "pk_progress_set_elapsed_time")] public bool set_elapsed_time (uint elapsed_time); [CCode (cname = "pk_progress_set_item_progress")] - public bool set_item_progress (string package_id, uint percentage); + public bool set_item_progress (Pk.ItemProgress item_progress); [CCode (cname = "pk_progress_set_package")] public bool set_package (Pk.Package package); [CCode (cname = "pk_progress_set_package_id")] @@ -627,8 +604,6 @@ namespace Pk { public bool set_speed (uint speed); [CCode (cname = "pk_progress_set_status")] public bool set_status (Pk.Status status); - [CCode (cname = "pk_progress_set_subpercentage")] - public bool set_subpercentage (int subpercentage); [CCode (cname = "pk_progress_set_transaction_id")] public bool set_transaction_id (string package_id); [CCode (cname = "pk_progress_set_uid")] @@ -640,11 +615,11 @@ namespace Pk { [NoAccessorMethod] public bool caller_active { get; set; } [NoAccessorMethod] - public uint elapsed_time { get; set; } + public uint download_size_remaining { get; set; } [NoAccessorMethod] - public string item_progress_id { owned get; set; } + public uint elapsed_time { get; set; } [NoAccessorMethod] - public int item_progress_value { get; set; } + public Pk.ItemProgress item_progress { owned get; set; } [NoAccessorMethod] public Pk.Package package { owned get; set; } [NoAccessorMethod] @@ -660,8 +635,6 @@ namespace Pk { [NoAccessorMethod] public uint status { get; set; } [NoAccessorMethod] - public int subpercentage { get; set; } - [NoAccessorMethod] public string transaction_id { owned get; set; } [NoAccessorMethod] public uint uid { get; set; } @@ -756,7 +729,7 @@ namespace Pk { [CCode (cname = "pk_results_get_message_array")] public GLib.GenericArray<weak Pk.Message> get_message_array (); [CCode (cname = "pk_results_get_package_array")] - public GLib.GenericArray<Pk.Package> get_package_array (); + public GLib.GenericArray<weak Pk.Package> get_package_array (); [CCode (cname = "pk_results_get_package_sack")] public Pk.PackageSack get_package_sack (); [CCode (cname = "pk_results_get_repo_detail_array")] @@ -767,8 +740,12 @@ namespace Pk { public GLib.GenericArray<weak Pk.RequireRestart> get_require_restart_array (); [CCode (cname = "pk_results_get_require_restart_worst")] public Pk.Restart get_require_restart_worst (); + [CCode (cname = "pk_results_get_role")] + public Pk.Role get_role (); [CCode (cname = "pk_results_get_transaction_array")] public GLib.GenericArray<weak Pk.TransactionPast> get_transaction_array (); + [CCode (cname = "pk_results_get_transaction_flags")] + public Pk.Bitfield get_transaction_flags (); [CCode (cname = "pk_results_get_update_detail_array")] public GLib.GenericArray<weak Pk.UpdateDetail> get_update_detail_array (); [CCode (cname = "pk_results_set_error_code")] @@ -783,6 +760,8 @@ namespace Pk { public Pk.Progress progress { owned get; set; } [NoAccessorMethod] public uint role { get; set; } + [NoAccessorMethod] + public uint64 transaction_flags { get; set; } } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_service_pack_get_type ()")] public class ServicePack : GLib.Object { @@ -816,62 +795,106 @@ namespace Pk { public Task (); [CCode (cname = "pk_task_download_packages_async")] public async void download_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_download_packages_sync")] + public Pk.Results download_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [NoWrapper] public virtual void eula_question (uint request, Pk.Results results); [CCode (cname = "pk_task_generic_finish")] public Pk.Results generic_finish (GLib.AsyncResult res) throws GLib.Error; [CCode (cname = "pk_task_get_categories_async")] public async void get_categories_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_categories_sync")] + public Pk.Results get_categories_sync (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_depends_async")] public async void get_depends_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_depends_sync")] + public Pk.Results get_depends_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_details_async")] public async void get_details_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_details_sync")] + public Pk.Results get_details_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_files_async")] public async void get_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_files_sync")] + public Pk.Results get_files_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_interactive")] public bool get_interactive (); + [CCode (cname = "pk_task_get_only_download")] + public bool get_only_download (); [CCode (cname = "pk_task_get_packages_async")] public async void get_packages_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_packages_sync")] + public Pk.Results get_packages_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_repo_list_async")] public async void get_repo_list_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_repo_list_sync")] + public Pk.Results get_repo_list_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_requires_async")] public async void get_requires_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_requires_sync")] + public Pk.Results get_requires_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_simulate")] public bool get_simulate (); [CCode (cname = "pk_task_get_update_detail_async")] public async void get_update_detail_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_update_detail_sync")] + public Pk.Results get_update_detail_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_get_updates_async")] public async void get_updates_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_get_updates_sync")] + public Pk.Results get_updates_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_install_files_async")] public async void install_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_install_files_sync")] + public Pk.Results install_files_sync ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_install_packages_async")] public async void install_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_install_packages_sync")] + public Pk.Results install_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [NoWrapper] public virtual void key_question (uint request, Pk.Results results); [NoWrapper] public virtual void media_change_question (uint request, Pk.Results results); [CCode (cname = "pk_task_refresh_cache_async")] public async void refresh_cache_async (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_refresh_cache_sync")] + public Pk.Results refresh_cache_sync (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_remove_packages_async")] public async void remove_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_remove_packages_sync")] + public Pk.Results remove_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_repair_system_async")] public async void repair_system_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_repair_system_sync")] + public Pk.Results repair_system_sync (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_repo_enable_async")] public async void repo_enable_async (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_repo_enable_sync")] + public Pk.Results repo_enable_sync (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_resolve_async")] public async void resolve_async (Pk.Bitfield filters, string packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_task_rollback_async")] - public async void rollback_async (string transaction_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_resolve_sync")] + public Pk.Results resolve_sync (Pk.Bitfield filters, string packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_search_details_async")] public async void search_details_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_search_details_sync")] + public Pk.Results search_details_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_search_files_async")] public async void search_files_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_search_files_sync")] + public Pk.Results search_files_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_search_groups_async")] public async void search_groups_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_search_groups_sync")] + public Pk.Results search_groups_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_search_names_async")] public async void search_names_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_search_names_sync")] + public Pk.Results search_names_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_set_interactive")] public void set_interactive (bool interactive); + [CCode (cname = "pk_task_set_only_download")] + public void set_only_download (bool only_download); [CCode (cname = "pk_task_set_simulate")] public void set_simulate (bool simulate); [NoWrapper] @@ -882,17 +905,21 @@ namespace Pk { public virtual void untrusted_question (uint request, Pk.Results results); [CCode (cname = "pk_task_update_packages_async")] public async void update_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); - [CCode (cname = "pk_task_update_system_async")] - public async void update_system_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_update_packages_sync")] + public Pk.Results update_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [CCode (cname = "pk_task_user_accepted")] public bool user_accepted (uint request); [CCode (cname = "pk_task_user_declined")] public bool user_declined (uint request); [CCode (cname = "pk_task_what_provides_async")] public async void what_provides_async (Pk.Bitfield filters, Pk.Provides provides, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback); + [CCode (cname = "pk_task_what_provides_sync")] + public Pk.Results what_provides_sync (Pk.Bitfield filters, Pk.Provides provides, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error; [NoAccessorMethod] public bool interactive { get; set; } [NoAccessorMethod] + public bool only_download { get; set; } + [NoAccessorMethod] public bool simulate { get; set; } } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_transaction_list_get_type ()")] @@ -931,16 +958,19 @@ namespace Pk { public class UpdateDetail : Pk.Source { [CCode (cname = "pk_update_detail_new", has_construct_function = false)] public UpdateDetail (); + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string bugzilla_url { owned get; set; } + public string[] bugzilla_urls { owned get; set; } [NoAccessorMethod] public string changelog { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string cve_url { owned get; set; } + public string[] cve_urls { owned get; set; } [NoAccessorMethod] public string issued { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string obsoletes { owned get; set; } + public string[] obsoletes { owned get; set; } [NoAccessorMethod] public string package_id { owned get; set; } [NoAccessorMethod] @@ -951,10 +981,12 @@ namespace Pk { public string update_text { owned get; set; } [NoAccessorMethod] public string updated { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string updates { owned get; set; } + public string[] updates { owned get; set; } + [CCode (array_length = false, array_null_terminated = true)] [NoAccessorMethod] - public string vendor_url { owned get; set; } + public string[] vendor_urls { owned get; set; } } [CCode (cheader_filename = "packagekit-glib2/packagekit.h")] [SimpleType] @@ -965,7 +997,7 @@ namespace Pk { public uint value; public weak global::string string; } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkAuthorizeEnum", cprefix = "PK_AUTHORIZE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkAuthorizeEnum", cprefix = "PK_AUTHORIZE_ENUM_", type_id = "pk_authorize_enum_get_type ()")] [GIR (name = "AuthorizeEnum")] public enum Authorize { UNKNOWN, @@ -974,33 +1006,14 @@ namespace Pk { INTERACTIVE, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CLIENT_ERROR_")] - public enum ClientError { - FAILED, - FAILED_AUTH, - NO_TID, - ALREADY_TID, - ROLE_UNKNOWN, - CANNOT_START_DAEMON, - INVALID_INPUT, - INVALID_FILE, - NOT_SUPPORTED, - DECLINED_SIMULATION, - LAST - } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CONTROL_ERROR_")] - public enum ControlError { - FAILED, - CANNOT_START_DAEMON - } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_DISTRO_UPGRADE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_DISTRO_UPGRADE_ENUM_", type_id = "pk_distro_upgrade_enum_get_type ()")] public enum DistroUpgradeEnum { UNKNOWN, STABLE, UNSTABLE, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_ERROR_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_ERROR_ENUM_", type_id = "pk_error_enum_get_type ()")] public enum ErrorEnum { UNKNOWN, OOM, @@ -1068,9 +1081,11 @@ namespace Pk { INSTALL_ROOT_INVALID, CANNOT_FETCH_SOURCES, CANCELLED_PRIORITY, + UNFINISHED_TRANSACTION, + LOCK_REQUIRED, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkExitEnum", cprefix = "PK_EXIT_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkExitEnum", cprefix = "PK_EXIT_ENUM_", type_id = "pk_exit_enum_get_type ()")] [GIR (name = "ExitEnum")] public enum Exit { UNKNOWN, @@ -1084,9 +1099,10 @@ namespace Pk { NEED_UNTRUSTED, CANCELLED_PRIORITY, SKIP_TRANSACTION, + REPAIR_REQUIRED, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkFilterEnum", cprefix = "PK_FILTER_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkFilterEnum", cprefix = "PK_FILTER_ENUM_", type_id = "pk_filter_enum_get_type ()")] [GIR (name = "FilterEnum")] public enum Filter { UNKNOWN, @@ -1117,7 +1133,7 @@ namespace Pk { NOT_APPLICATION, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkGroupEnum", cprefix = "PK_GROUP_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkGroupEnum", cprefix = "PK_GROUP_ENUM_", type_id = "pk_group_enum_get_type ()")] [GIR (name = "GroupEnum")] public enum Group { UNKNOWN, @@ -1157,7 +1173,7 @@ namespace Pk { NEWEST, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkInfoEnum", cprefix = "PK_INFO_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkInfoEnum", cprefix = "PK_INFO_ENUM_", type_id = "pk_info_enum_get_type ()")] [GIR (name = "InfoEnum")] public enum Info { UNKNOWN, @@ -1187,7 +1203,7 @@ namespace Pk { TRUSTED, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkMediaTypeEnum", cprefix = "PK_MEDIA_TYPE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkMediaTypeEnum", cprefix = "PK_MEDIA_TYPE_ENUM_", type_id = "pk_media_type_enum_get_type ()")] [GIR (name = "MediaTypeEnum")] public enum MediaType { UNKNOWN, @@ -1196,7 +1212,7 @@ namespace Pk { DISC, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_MESSAGE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_MESSAGE_ENUM_", type_id = "pk_message_enum_get_type ()")] public enum MessageEnum { UNKNOWN, BROKEN_MIRROR, @@ -1206,7 +1222,6 @@ namespace Pk { BACKEND_ERROR, DAEMON_ERROR, CACHE_BEING_REBUILT, - UNTRUSTED_PACKAGE, NEWER_PACKAGE_EXISTS, COULD_NOT_FIND_PACKAGE, CONFIG_FILES_CHANGED, @@ -1217,7 +1232,7 @@ namespace Pk { OTHER_UPDATES_HELD_BACK, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkNetworkEnum", cprefix = "PK_NETWORK_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkNetworkEnum", cprefix = "PK_NETWORK_ENUM_", type_id = "pk_network_enum_get_type ()")] [GIR (name = "NetworkEnum")] public enum Network { UNKNOWN, @@ -1228,7 +1243,7 @@ namespace Pk { MOBILE, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PACKAGE_SACK_SORT_TYPE_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PACKAGE_SACK_SORT_TYPE_", type_id = "pk_package_sack_sort_type_get_type ()")] public enum PackageSackSortType { NAME, INFO, @@ -1236,12 +1251,11 @@ namespace Pk { SUMMARY, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PROGRESS_TYPE_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PROGRESS_TYPE_", type_id = "pk_progress_type_get_type ()")] public enum ProgressType { PACKAGE_ID, TRANSACTION_ID, PERCENTAGE, - SUBPERCENTAGE, ALLOW_CANCEL, STATUS, ROLE, @@ -1249,12 +1263,13 @@ namespace Pk { ELAPSED_TIME, REMAINING_TIME, SPEED, + DOWNLOAD_SIZE_REMAINING, UID, PACKAGE, ITEM_PROGRESS, INVALID } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkProvidesEnum", cprefix = "PK_PROVIDES_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkProvidesEnum", cprefix = "PK_PROVIDES_ENUM_", type_id = "pk_provides_enum_get_type ()")] [GIR (name = "ProvidesEnum")] public enum Provides { UNKNOWN, @@ -1268,9 +1283,10 @@ namespace Pk { PLASMA_SERVICE, SHARED_LIB, PYTHON, + LANGUAGE_SUPPORT, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRestartEnum", cprefix = "PK_RESTART_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRestartEnum", cprefix = "PK_RESTART_ENUM_", type_id = "pk_restart_enum_get_type ()")] [GIR (name = "RestartEnum")] public enum Restart { UNKNOWN, @@ -1282,7 +1298,7 @@ namespace Pk { SECURITY_SYSTEM, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRoleEnum", cprefix = "PK_ROLE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRoleEnum", cprefix = "PK_ROLE_ENUM_", type_id = "pk_role_enum_get_type ()")] [GIR (name = "RoleEnum")] public enum Role { UNKNOWN, @@ -1303,36 +1319,29 @@ namespace Pk { REPO_ENABLE, REPO_SET_DATA, RESOLVE, - ROLLBACK, SEARCH_DETAILS, SEARCH_FILE, SEARCH_GROUP, SEARCH_NAME, UPDATE_PACKAGES, - UPDATE_SYSTEM, WHAT_PROVIDES, ACCEPT_EULA, DOWNLOAD_PACKAGES, GET_DISTRO_UPGRADES, GET_CATEGORIES, GET_OLD_TRANSACTIONS, - SIMULATE_INSTALL_FILES, - SIMULATE_INSTALL_PACKAGES, - SIMULATE_REMOVE_PACKAGES, - SIMULATE_UPDATE_PACKAGES, UPGRADE_SYSTEM, REPAIR_SYSTEM, - SIMULATE_REPAIR_SYSTEM, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkSigTypeEnum", cprefix = "PK_SIGTYPE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkSigTypeEnum", cprefix = "PK_SIGTYPE_ENUM_", type_id = "pk_sig_type_enum_get_type ()")] [GIR (name = "SigTypeEnum")] public enum SigType { UNKNOWN, GPG, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkStatusEnum", cprefix = "PK_STATUS_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkStatusEnum", cprefix = "PK_STATUS_ENUM_", type_id = "pk_status_enum_get_type ()")] [GIR (name = "StatusEnum")] public enum Status { UNKNOWN, @@ -1350,7 +1359,6 @@ namespace Pk { OBSOLETE, DEP_RESOLVE, SIG_CHECK, - ROLLBACK, TEST_COMMIT, COMMIT, REQUEST, @@ -1374,7 +1382,16 @@ namespace Pk { COPY_FILES, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpdateStateEnum", cprefix = "PK_UPDATE_STATE_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkTransactionFlagEnum", cprefix = "PK_TRANSACTION_FLAG_ENUM_", type_id = "pk_transaction_flag_enum_get_type ()")] + [GIR (name = "TransactionFlagEnum")] + public enum TransactionFlag { + NONE, + ONLY_TRUSTED, + SIMULATE, + ONLY_DOWNLOAD, + LAST + } + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpdateStateEnum", cprefix = "PK_UPDATE_STATE_ENUM_", type_id = "pk_update_state_enum_get_type ()")] [GIR (name = "UpdateStateEnum")] public enum UpdateState { UNKNOWN, @@ -1383,7 +1400,7 @@ namespace Pk { TESTING, LAST } - [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpgradeKindEnum", cprefix = "PK_UPGRADE_KIND_ENUM_")] + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpgradeKindEnum", cprefix = "PK_UPGRADE_KIND_ENUM_", type_id = "pk_upgrade_kind_enum_get_type ()")] [GIR (name = "UpgradeKindEnum")] public enum UpgradeKind { UNKNOWN, @@ -1396,20 +1413,33 @@ namespace Pk { public errordomain CatalogError { FAILED } + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CLIENT_ERROR_")] + public errordomain ClientError { + FAILED, + FAILED_AUTH, + NO_TID, + ALREADY_TID, + ROLE_UNKNOWN, + CANNOT_START_DAEMON, + INVALID_INPUT, + INVALID_FILE, + NOT_SUPPORTED, + DECLINED_SIMULATION, + LAST + } + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CONTROL_ERROR_")] + public errordomain ControlError { + FAILED, + CANNOT_START_DAEMON + } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_SERVICE_PACK_ERROR_")] public errordomain ServicePackError { - [CCode (cname = "PK_SERVICE_PACK_ERROR_FAILED_SETUP")] - FAILEDSETUP, - [CCode (cname = "PK_SERVICE_PACK_ERROR_FAILED_DOWNLOAD")] - FAILEDDOWNLOAD, - [CCode (cname = "PK_SERVICE_PACK_ERROR_FAILED_EXTRACTION")] - FAILEDEXTRACTION, - [CCode (cname = "PK_SERVICE_PACK_ERROR_FAILED_CREATE")] - FAILEDCREATE, - [CCode (cname = "PK_SERVICE_PACK_ERROR_NOTHING_TO_DO")] - NOTHINGTODO, - [CCode (cname = "PK_SERVICE_PACK_ERROR_NOT_COMPATIBLE")] - NOTCOMPATIBLE + FAILED_SETUP, + FAILED_DOWNLOAD, + FAILED_EXTRACTION, + FAILED_CREATE, + NOTHING_TO_DO, + NOT_COMPATIBLE } [CCode (cheader_filename = "packagekit-glib2/packagekit.h", instance_pos = 1.9)] public delegate bool PackageSackFilterFunc (Pk.Package package); @@ -1449,6 +1479,8 @@ namespace Pk { public const string SERVICE_PACK_FILE_EXTENSION; [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_SERVICE_PACK_GROUP_NAME")] public const string SERVICE_PACK_GROUP_NAME; + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_SYSTEM_PACKAGE_CACHE_FILENAME")] + public const string SYSTEM_PACKAGE_CACHE_FILENAME; [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_SYSTEM_PACKAGE_LIST_FILENAME")] public const string SYSTEM_PACKAGE_LIST_FILENAME; [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_authorize_type_enum_from_string")] @@ -1459,20 +1491,32 @@ namespace Pk { public static void bitfield_test (void* user_data); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_catalog_error_quark")] public static GLib.Quark catalog_error_quark (); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_client_error_quark")] + public static GLib.Quark client_error_quark (); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_common_test")] public static void common_test (void* user_data); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_control_error_quark")] + public static GLib.Quark control_error_quark (); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_debug_add_log_domain")] public static void debug_add_log_domain (string log_domain); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_debug_is_verbose")] public static bool debug_is_verbose (); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_debug_set_verbose")] public static void debug_set_verbose (bool verbose); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_distro_upgrade_enum_from_string")] + public static Pk.DistroUpgradeEnum distro_upgrade_enum_from_string (string upgrade); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_distro_upgrade_enum_to_string")] + public static unowned string distro_upgrade_enum_to_string (Pk.DistroUpgradeEnum upgrade); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_enum_find_string")] public static unowned string enum_find_string (Pk.EnumMatch table, uint value); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_enum_find_value")] public static uint enum_find_value (Pk.EnumMatch table, string string); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_enum_test")] public static void enum_test (void* user_data); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_error_enum_from_string")] + public static Pk.ErrorEnum error_enum_from_string (string code); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_error_enum_to_string")] + public static unowned string error_enum_to_string (Pk.ErrorEnum code); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_exit_enum_from_string")] public static Pk.Exit exit_enum_from_string (string exit); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_exit_enum_to_string")] @@ -1583,6 +1627,10 @@ namespace Pk { public static Pk.MediaType media_type_enum_from_string (string media_type); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_media_type_enum_to_string")] public static unowned string media_type_enum_to_string (Pk.MediaType media_type); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_message_enum_from_string")] + public static Pk.MessageEnum message_enum_from_string (string message); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_message_enum_to_string")] + public static unowned string message_enum_to_string (Pk.MessageEnum message); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_network_enum_from_string")] public static Pk.Network network_enum_from_string (string network); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_network_enum_to_string")] @@ -1619,6 +1667,14 @@ namespace Pk { public static unowned string status_enum_to_localised_text (Pk.Status status); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_status_enum_to_string")] public static unowned string status_enum_to_string (Pk.Status status); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_transaction_flag_bitfield_from_string")] + public static Pk.Bitfield transaction_flag_bitfield_from_string (string transaction_flags); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_transaction_flag_bitfield_to_string")] + public static string transaction_flag_bitfield_to_string (Pk.Bitfield transaction_flags); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_transaction_flag_enum_from_string")] + public static Pk.TransactionFlag transaction_flag_enum_from_string (string transaction_flag); + [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_transaction_flag_enum_to_string")] + public static unowned string transaction_flag_enum_to_string (Pk.TransactionFlag transaction_flag); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_update_state_enum_from_string")] public static Pk.UpdateState update_state_enum_from_string (string update_state); [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "pk_update_state_enum_to_string")] diff --git a/vapi/pango.vapi b/vapi/pango.vapi index d245976c8..76d9fd740 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -783,7 +783,17 @@ namespace Pango { VAI, CARIAN, LYCIAN, - LYDIAN; + LYDIAN, + BATAK, + BRAHMI, + MANDAIC, + CHAKMA, + MEROITIC_CURSIVE, + MEROITIC_HIEROGLYPHS, + MIAO, + SHARADA, + SORA_SOMPENG, + TAKRI; public static Pango.Script for_unichar (unichar ch); public static Pango.Language get_sample_language (Pango.Script script); } diff --git a/vapi/vte-2.90.vapi b/vapi/vte-2.90.vapi index 7ade3d5ee..8401f790f 100644 --- a/vapi/vte-2.90.vapi +++ b/vapi/vte-2.90.vapi @@ -36,6 +36,8 @@ namespace Vte { public long get_char_width (); public int get_child_exit_status (); public long get_column_count (); + public unowned string get_current_directory_uri (); + public unowned string get_current_file_uri (); public Vte.TerminalCursorBlinkMode get_cursor_blink_mode (); public void get_cursor_position (out long column, out long row); public Vte.TerminalCursorShape get_cursor_shape (); @@ -129,6 +131,8 @@ namespace Vte { public bool background_transparent { get; set; } [NoAccessorMethod] public Vte.TerminalEraseBinding backspace_binding { get; set; } + public string current_directory_uri { get; } + public string current_file_uri { get; } public Vte.TerminalCursorBlinkMode cursor_blink_mode { get; set; } public Vte.TerminalCursorShape cursor_shape { get; set; } [NoAccessorMethod] @@ -160,6 +164,8 @@ namespace Vte { public virtual signal void contents_changed (); [HasEmitter] public virtual signal void copy_clipboard (); + public signal void current_directory_uri_changed (); + public signal void current_file_uri_changed (); public virtual signal void cursor_moved (); public virtual signal void decrease_font_size (); public virtual signal void deiconify_window (); |