[vala/0.34] polkit-gobject-1: Fix constructors which weren't detected as such



commit 7ce1a0db1a7a13554839554c539e58ce205223a0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Oct 8 23:45:11 2016 +0200

    polkit-gobject-1: Fix constructors which weren't detected as such

 vapi/metadata/Polkit-1.0.metadata |    6 ++++++
 vapi/polkit-gobject-1.vapi        |   18 ++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/vapi/metadata/Polkit-1.0.metadata b/vapi/metadata/Polkit-1.0.metadata
index acd5d72..dd3c52c 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 7441a74..5dbb3d3 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; }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]