summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-10-08 23:37:38 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2016-10-08 23:37:38 +0200
commit5faa31396b98f07529cb87fce36599ac7982d9c2 (patch)
treecbdcfe211420bfe2caef0fe845681cab8200f315
parentd933e47b45b0df0230e79d7e1c8968666be6f5cc (diff)
downloadvala-5faa31396b98f07529cb87fce36599ac7982d9c2.tar.gz
polkit-gobject-1: Fix constructors which weren't detected as such
-rw-r--r--vapi/metadata/Polkit-1.0.metadata13
-rw-r--r--vapi/polkit-gobject-1.vapi30
2 files changed, 25 insertions, 18 deletions
diff --git a/vapi/metadata/Polkit-1.0.metadata b/vapi/metadata/Polkit-1.0.metadata
index 8dc3e48c3..acd5d7286 100644
--- a/vapi/metadata/Polkit-1.0.metadata
+++ b/vapi/metadata/Polkit-1.0.metadata
@@ -1 +1,14 @@
*.*.cancellable#parameter nullable default=null
+
+SystemBusName
+ .new symbol_type="constructor"
+UnixGroup
+ .new symbol_type="constructor"
+UnixNetgroup
+ .new symbol_type="constructor"
+UnixProcess
+ .new symbol_type="constructor"
+UnixSession
+ .new symbol_type="constructor"
+UnixUser
+ .new symbol_type="constructor"
diff --git a/vapi/polkit-gobject-1.vapi b/vapi/polkit-gobject-1.vapi
index 4ef1bd5a8..7441a7403 100644
--- a/vapi/polkit-gobject-1.vapi
+++ b/vapi/polkit-gobject-1.vapi
@@ -88,12 +88,11 @@ namespace Polkit {
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_system_bus_name_get_type ()")]
public class SystemBusName : GLib.Object, Polkit.Subject {
- [CCode (has_construct_function = false)]
- protected SystemBusName ();
+ [CCode (has_construct_function = false, type = "PolkitSubject*")]
+ public SystemBusName (string name);
public unowned string get_name ();
public Polkit.Subject? get_process_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
public Polkit.UnixUser? get_user_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
- public static Polkit.Subject @new (string name);
public void set_name (string name);
public string name { get; set construct; }
}
@@ -109,32 +108,29 @@ namespace Polkit {
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_group_get_type ()")]
public class UnixGroup : GLib.Object, Polkit.Identity {
- [CCode (has_construct_function = false)]
- protected UnixGroup ();
+ [CCode (has_construct_function = false, type = "PolkitIdentity*")]
+ public UnixGroup (int gid);
public int get_gid ();
- public static Polkit.Identity @new (int 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; }
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_netgroup_get_type ()")]
public class UnixNetgroup : GLib.Object, Polkit.Identity {
- [CCode (has_construct_function = false)]
- protected UnixNetgroup ();
+ [CCode (has_construct_function = false, type = "PolkitIdentity*")]
+ public UnixNetgroup (string name);
public unowned string get_name ();
- public static Polkit.Identity @new (string name);
public void set_name (string name);
public string name { get; set construct; }
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_process_get_type ()")]
public class UnixProcess : GLib.Object, Polkit.Subject {
- [CCode (has_construct_function = false)]
- protected UnixProcess ();
+ [CCode (has_construct_function = false, type = "PolkitSubject*")]
+ public UnixProcess (int pid);
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 (int pid);
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);
@@ -146,10 +142,9 @@ namespace Polkit {
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_session_get_type ()")]
public class UnixSession : GLib.Object, GLib.AsyncInitable, GLib.Initable, Polkit.Subject {
- [CCode (has_construct_function = false)]
- protected UnixSession ();
+ [CCode (has_construct_function = false, type = "PolkitSubject*")]
+ public UnixSession (string session_id);
public unowned string get_session_id ();
- public static Polkit.Subject @new (string 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);
@@ -158,11 +153,10 @@ namespace Polkit {
}
[CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_user_get_type ()")]
public class UnixUser : GLib.Object, Polkit.Identity {
- [CCode (has_construct_function = false)]
- protected UnixUser ();
+ [CCode (has_construct_function = false, type = "PolkitIdentity*")]
+ public UnixUser (int uid);
public unowned string? get_name ();
public int get_uid ();
- public static Polkit.Identity @new (int 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; }