From: Rico Tzschichholz Date: Sat, 8 Oct 2016 21:45:11 +0000 (+0200) Subject: polkit-gobject-1: Fix constructors which weren't detected as such X-Git-Tag: 0.35.1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67939bdbaa29c7cd623ed0561f06ca1d39a67053;p=thirdparty%2Fvala.git polkit-gobject-1: Fix constructors which weren't detected as such --- diff --git a/vapi/metadata/Polkit-1.0.metadata b/vapi/metadata/Polkit-1.0.metadata index acd5d7286..dd3c52cfe 100644 --- a/vapi/metadata/Polkit-1.0.metadata +++ b/vapi/metadata/Polkit-1.0.metadata @@ -4,11 +4,17 @@ SystemBusName .new symbol_type="constructor" UnixGroup .new symbol_type="constructor" + .new_for_name symbol_type="constructor" UnixNetgroup .new symbol_type="constructor" UnixProcess .new symbol_type="constructor" + .new_for_owner symbol_type="constructor" + .new_full symbol_type="constructor" UnixSession .new symbol_type="constructor" + .new_for_process symbol_type="constructor" + .new_for_process_sync symbol_type="constructor" UnixUser .new symbol_type="constructor" + .new_for_name symbol_type="constructor" diff --git a/vapi/polkit-gobject-1.vapi b/vapi/polkit-gobject-1.vapi index 7441a7403..5dbb3d378 100644 --- a/vapi/polkit-gobject-1.vapi +++ b/vapi/polkit-gobject-1.vapi @@ -110,8 +110,9 @@ namespace Polkit { public class UnixGroup : GLib.Object, Polkit.Identity { [CCode (has_construct_function = false, type = "PolkitIdentity*")] public UnixGroup (int gid); + [CCode (has_construct_function = false, type = "PolkitIdentity*")] + public UnixGroup.for_name (string name) throws GLib.Error; public int get_gid (); - public static Polkit.Identity new_for_name (string name) throws GLib.Error; public void set_gid (int gid); public int gid { get; set construct; } } @@ -127,12 +128,14 @@ namespace Polkit { public class UnixProcess : GLib.Object, Polkit.Subject { [CCode (has_construct_function = false, type = "PolkitSubject*")] public UnixProcess (int pid); + [CCode (has_construct_function = false, type = "PolkitSubject*")] + public UnixProcess.for_owner (int pid, uint64 start_time, int uid); + [CCode (has_construct_function = false, type = "PolkitSubject*")] + public UnixProcess.full (int pid, uint64 start_time); public int get_owner () throws GLib.Error; public int get_pid (); public uint64 get_start_time (); public int get_uid (); - public static Polkit.Subject new_for_owner (int pid, uint64 start_time, int uid); - public static Polkit.Subject new_full (int pid, uint64 start_time); public void set_pid (int pid); public void set_start_time (uint64 start_time); public void set_uid (int uid); @@ -144,9 +147,11 @@ namespace Polkit { public class UnixSession : GLib.Object, GLib.AsyncInitable, GLib.Initable, Polkit.Subject { [CCode (has_construct_function = false, type = "PolkitSubject*")] public UnixSession (string session_id); + [CCode (has_construct_function = false, type = "void")] + public async UnixSession.for_process (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; + [CCode (has_construct_function = false, type = "PolkitSubject*")] + public UnixSession.for_process_sync (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; public unowned string get_session_id (); - public static async Polkit.Subject? new_for_process (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; - public static Polkit.Subject? new_for_process_sync (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; public void set_session_id (string session_id); public int pid { construct; } public string session_id { get; set construct; } @@ -155,9 +160,10 @@ namespace Polkit { public class UnixUser : GLib.Object, Polkit.Identity { [CCode (has_construct_function = false, type = "PolkitIdentity*")] public UnixUser (int uid); + [CCode (has_construct_function = false, type = "PolkitIdentity*")] + public UnixUser.for_name (string name) throws GLib.Error; public unowned string? get_name (); public int get_uid (); - public static Polkit.Identity? new_for_name (string name) throws GLib.Error; public void set_uid (int uid); public int uid { get; set construct; } }