[vala/wip/libgtop-2.0: 29/29] WIP
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/libgtop-2.0: 29/29] WIP
- Date: Mon, 18 Mar 2019 07:33:35 +0000 (UTC)
commit 249a1f8550cbf30f2f2ebd9c6e9673d1c4a20937
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Mar 18 08:25:05 2019 +0100
WIP
vapi/libgtop-2.0.vapi | 40 ++++++++++++++++++++++++----------------
vapi/metadata/GTop-2.0.metadata | 13 +++----------
2 files changed, 27 insertions(+), 26 deletions(-)
---
diff --git a/vapi/libgtop-2.0.vapi b/vapi/libgtop-2.0.vapi
index 1984ea87c..5febc4e5c 100644
--- a/vapi/libgtop-2.0.vapi
+++ b/vapi/libgtop-2.0.vapi
@@ -63,10 +63,12 @@ namespace GTop {
public static void get_mem (out GTop.Mem buf);
public void get_mem_l (out GTop.Mem buf);
public void get_mem_s (out GTop.Mem buf);
- [CCode (cheader_filename = "glibtop.h")]
- public static GTop.MountEntry? get_mountlist (out GTop.MountList buf, int all_fs);
- public GTop.MountEntry? get_mountlist_l (out GTop.MountList buf, int all_fs);
- public GTop.MountEntry? get_mountlist_s (out GTop.MountList buf, int all_fs);
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "glibtop.h")]
+ public static GTop.MountEntry[] get_mountlist (out GTop.MountList buf, int all_fs);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.MountEntry[] get_mountlist_l (out GTop.MountList buf, int all_fs);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.MountEntry[] get_mountlist_s (out GTop.MountList buf, int all_fs);
[CCode (cheader_filename = "glibtop.h")]
public static void get_msg_limits (out GTop.MsgLimits buf);
public void get_msg_limits_l (out GTop.MsgLimits buf);
@@ -90,10 +92,12 @@ namespace GTop {
public static uint16 get_proc_affinity (out GTop.ProcAffinity buf, int pid);
public uint16 get_proc_affinity_l (out GTop.ProcAffinity buf, int pid);
public uint16 get_proc_affinity_s (out GTop.ProcAffinity buf, int pid);
- [CCode (cheader_filename = "glibtop.h")]
- public static string get_proc_args (out GTop.ProcArgs buf, int pid, uint max_len);
- public string get_proc_args_l (out GTop.ProcArgs buf, int pid, uint max_len);
- public string get_proc_args_s (out GTop.ProcArgs buf, int pid, uint max_len);
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "glibtop.h")]
+ public static string[] get_proc_args (out GTop.ProcArgs buf, int pid, uint max_len);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_proc_args_l (out GTop.ProcArgs buf, int pid, uint max_len);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_proc_args_s (out GTop.ProcArgs buf, int pid, uint max_len);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "glibtop.h")]
public static string[] get_proc_argv (out GTop.ProcArgs buf, int pid, uint max_len);
[CCode (cheader_filename = "glibtop.h")]
@@ -104,18 +108,22 @@ namespace GTop {
public static void get_proc_kernel (out GTop.ProcKernel buf, int pid);
public void get_proc_kernel_l (out GTop.ProcKernel buf, int pid);
public void get_proc_kernel_s (out GTop.ProcKernel buf, int pid);
- [CCode (cheader_filename = "glibtop.h")]
- public static GTop.MapEntry? get_proc_map (out GTop.ProcMap buf, int pid);
- public GTop.MapEntry? get_proc_map_l (out GTop.ProcMap buf, int pid);
- public GTop.MapEntry? get_proc_map_s (out GTop.ProcMap buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "glibtop.h")]
+ public static GTop.MapEntry[] get_proc_map (out GTop.ProcMap buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.MapEntry[] get_proc_map_l (out GTop.ProcMap buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.MapEntry[] get_proc_map_s (out GTop.ProcMap buf, int pid);
[CCode (cheader_filename = "glibtop.h")]
public static void get_proc_mem (out GTop.ProcMem buf, int pid);
public void get_proc_mem_l (out GTop.ProcMem buf, int pid);
public void get_proc_mem_s (out GTop.ProcMem buf, int pid);
- [CCode (cheader_filename = "glibtop.h")]
- public static GTop.OpenFileEntry? get_proc_open_files (out GTop.ProcOpenFiles buf, int pid);
- public GTop.OpenFileEntry? get_proc_open_files_l (out GTop.ProcOpenFiles buf, int pid);
- public GTop.OpenFileEntry? get_proc_open_files_s (out GTop.ProcOpenFiles buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true, cheader_filename = "glibtop.h")]
+ public static GTop.OpenFileEntry[] get_proc_open_files (out GTop.ProcOpenFiles buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.OpenFileEntry[] get_proc_open_files_l (out GTop.ProcOpenFiles buf, int pid);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public GTop.OpenFileEntry[] get_proc_open_files_s (out GTop.ProcOpenFiles buf, int pid);
[CCode (cheader_filename = "glibtop.h")]
public static void get_proc_segment (out GTop.Segment buf, int pid);
public void get_proc_segment_l (out GTop.Segment buf, int pid);
diff --git a/vapi/metadata/GTop-2.0.metadata b/vapi/metadata/GTop-2.0.metadata
index 4c257efe6..f143014cd 100644
--- a/vapi/metadata/GTop-2.0.metadata
+++ b/vapi/metadata/GTop-2.0.metadata
@@ -64,13 +64,6 @@ glibtop_entry
.descriptions unowned
glibtop
- .get_netlist* unowned=false
- .get_mountlist_l unowned=false
- .get_mountlist_s unowned=false
- .get_proc_map* unowned=false
- .get_proc_open_files* unowned=false
- .get_proclist* unowned=false
-glibtop_get_netlist unowned=false
-glibtop_get_proc_map unowned=false
-glibtop_get_proc_open_files unowned=false
-glibtop_get_proclist unowned=false
+ .get_proc_args* array array_null_terminated unowned=false
+ .get_proc_open_files_s array array_null_terminated unowned=false
+glibtop_get_proc_args array array_null_terminated unowned=false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]