[vala/wip/libgtop-2.0] WIP



commit 3f4027dda1c7aa80a0dd215bae098820646cb26f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Mar 18 08:25:05 2019 +0100

    WIP

 vapi/libgtop-2.0.vapi           | 30 ++++++++++++++++++------------
 vapi/metadata/GTop-2.0.metadata | 11 +----------
 2 files changed, 19 insertions(+), 22 deletions(-)
---
diff --git a/vapi/libgtop-2.0.vapi b/vapi/libgtop-2.0.vapi
index 1984ea87c..967e21940 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);
@@ -104,18 +106,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..f5222e378 100644
--- a/vapi/metadata/GTop-2.0.metadata
+++ b/vapi/metadata/GTop-2.0.metadata
@@ -64,13 +64,4 @@ 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_open_files_s array array_null_terminated unowned=false


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