Merge lp:~l-admin-3/wingpanel-indicator-power/list-power-eaters into lp:~wingpanel-devs/wingpanel-indicator-power/trunk

Proposed by Marcus Wichelmann
Status: Merged
Approved by: Djax
Approved revision: 82
Merged at revision: 64
Proposed branch: lp:~l-admin-3/wingpanel-indicator-power/list-power-eaters
Merge into: lp:~wingpanel-devs/wingpanel-indicator-power/trunk
Diff against target: 2065 lines (+1929/-18)
10 files modified
CMakeLists.txt (+6/-6)
src/CMakeLists.txt (+9/-1)
src/Indicator.vala (+2/-2)
src/Services/AppManager.vala (+97/-0)
src/Services/ProcessMonitor/Monitor.vala (+215/-0)
src/Services/ProcessMonitor/Process.vala (+176/-0)
src/Widgets/AppList.vala (+99/-0)
src/Widgets/DeviceList.vala (+1/-1)
src/Widgets/PopoverWidget.vala (+10/-8)
vapi/libgtop-2.0.vapi (+1314/-0)
To merge this branch: bzr merge lp:~l-admin-3/wingpanel-indicator-power/list-power-eaters
Reviewer Review Type Date Requested Status
Djax Approve
Danielle Foré ux Approve
WingPanel Devs code Pending
Review via email: mp+264731@code.launchpad.net

Commit message

Reveal apps eating my precious blood

Description of the change

This branch adds a list of desktop-apps consuming the most energy to the power-indicator. For performance reasons the list is only updated after opening the indicator.
The percent-number is relative to the total cpu-load and also is more ore less relative to the power consumption.

Ah, and very thanks to Djax for your help! :)

To post a comment you must log in.
59. By Marcus Wichelmann

Change order of lists

60. By Marcus Wichelmann

Fix icon size

61. By Marcus Wichelmann

Don't recognize docks as windows

62. By Marcus Wichelmann

Hide separator if list is empty

63. By Marcus Wichelmann

Debug output for initialisation of process monitor added

64. By Marcus Wichelmann

Only listen for cpu-data while indicator is open

65. By Marcus Wichelmann

Fix segmentation fault on invalid desktop-filename

66. By Marcus Wichelmann

There was a second timer running at the same time.

67. By Marcus Wichelmann

percentage-label removed; Show only apps that are conusmint >=10% cpu

68. By Marcus Wichelmann

Moved separator to AppList; Added title-label

69. By Marcus Wichelmann

Forgot connect_signals() call

70. By Marcus Wichelmann

Comment unnecessary code out that seems to end up in an infinite loop on some devices and that way makes the whole system unusable.

71. By Marcus Wichelmann

Check cpu usage of sub-processes, too.

72. By Marcus Wichelmann

CMake fix

73. By Marcus Wichelmann

Show real app name

74. By Marcus Wichelmann

Margins fixed

75. By Marcus Wichelmann

Rebase on trunk

76. By Marcus Wichelmann

Update once when opening the indicator.

77. By Marcus Wichelmann

Don't show docks

78. By Marcus Wichelmann

blacklist Menus, too.

Revision history for this message
Danielle Foré (danrabbit) wrote :

This seems to work as expected :) Looks nice, great work!

review: Approve (ux)
79. By Marcus Wichelmann

vapi renamed

80. By Marcus Wichelmann

Some work for our bot: Fixed the codestyle of the Monitor.vala and Process.vala to fit the elementary-style.

81. By Marcus Wichelmann

Get rid of some unused code

82. By Marcus Wichelmann

Some behaviour-changes for updating the application-data

Revision history for this message
Djax (parnold-x) wrote :

Works fine.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-06-19 21:53:46 +0000
3+++ CMakeLists.txt 2015-08-03 21:04:36 +0000
4@@ -44,10 +44,10 @@
5 add_subdirectory (schemas)
6
7 # Uninstall target
8- configure_file(
9- "${CMAKE_SOURCE_DIR}/cmake/Uninstall.cmake"
10- "${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake"
11- IMMEDIATE @ONLY)
12+configure_file(
13+ "${CMAKE_SOURCE_DIR}/cmake/Uninstall.cmake"
14+ "${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake"
15+ IMMEDIATE @ONLY)
16
17- add_custom_target(uninstall
18- COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)
19+add_custom_target(uninstall
20+ COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)
21
22=== modified file 'src/CMakeLists.txt'
23--- src/CMakeLists.txt 2015-05-24 23:42:00 +0000
24+++ src/CMakeLists.txt 2015-08-03 21:04:36 +0000
25@@ -1,7 +1,7 @@
26 find_package (PkgConfig)
27
28 # Add all your dependencies to the list below
29-pkg_check_modules (DEPS REQUIRED gthread-2.0 gtk+-3.0 wingpanel-2.0 granite)
30+pkg_check_modules (DEPS REQUIRED gthread-2.0 gtk+-3.0 wingpanel-2.0 granite libgtop-2.0 libbamf3)
31
32 add_definitions (${DEPS_CFLAGS})
33 link_directories (${DEPS_LIBRARY_DIRS})
34@@ -17,17 +17,25 @@
35 Utils.vala
36 Widgets/DisplayWidget.vala
37 Widgets/PopoverWidget.vala
38+ Widgets/AppList.vala
39 Widgets/DeviceList.vala
40 Services/SettingsManager.vala
41 Services/DeviceManager.vala
42 Services/Device.vala
43+ Services/AppManager.vala
44 Services/DBusInterfaces/Properties.vala
45 Services/DBusInterfaces/UPower.vala
46 Services/DBusInterfaces/Device.vala
47+ Services/ProcessMonitor/Monitor.vala
48+ Services/ProcessMonitor/Process.vala
49 ${CMAKE_CURRENT_BINARY_DIR}/config.vala
50 PACKAGES
51 wingpanel-2.0
52 granite
53+ libbamf3
54+ posix
55+CUSTOM_VAPIS
56+ ../vapi/libgtop-2.0.vapi
57 OPTIONS
58 --thread
59 )
60
61=== modified file 'src/Indicator.vala'
62--- src/Indicator.vala 2015-05-25 00:01:24 +0000
63+++ src/Indicator.vala 2015-08-03 21:04:36 +0000
64@@ -53,11 +53,11 @@
65 }
66
67 public override void opened () {
68- // TODO
69+ Services.ProcessMonitor.Monitor.get_default ().update ();
70 }
71
72 public override void closed () {
73- // TODO
74+ popover_widget.slim_down ();
75 }
76
77 private void update_visibility () {
78
79=== added file 'src/Services/AppManager.vala'
80--- src/Services/AppManager.vala 1970-01-01 00:00:00 +0000
81+++ src/Services/AppManager.vala 2015-08-03 21:04:36 +0000
82@@ -0,0 +1,97 @@
83+/*-
84+ * Copyright (c) 2015 Wingpanel Developers (http://launchpad.net/wingpanel)
85+ *
86+ * This program is free software: you can redistribute it and/or modify
87+ * it under the terms of the GNU Library General Public License as published by
88+ * the Free Software Foundation, either version 2.1 of the License, or
89+ * (at your option) any later version.
90+ *
91+ * This program is distributed in the hope that it will be useful,
92+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
93+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94+ * GNU Library General Public License for more details.
95+ *
96+ * You should have received a copy of the GNU Library General Public License
97+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
98+ */
99+
100+public class Power.Services.AppManager : Object {
101+ public struct PowerEater {
102+ Bamf.Application application;
103+ int cpu_usage;
104+ }
105+
106+ private static AppManager? instance = null;
107+
108+ public AppManager () {
109+
110+ }
111+
112+ public Gee.List<PowerEater?> get_top_power_eaters (int count) {
113+ var list = new Gee.ArrayList<PowerEater?> ();
114+
115+ var matcher = Bamf.Matcher.get_default ();
116+ var applications = matcher.get_running_applications ();
117+
118+ applications.@foreach ((app) => {
119+ // cpu-usage in percent
120+ var cpu_usage = (int)(get_cpu_usage_for_app (app) * 100);
121+
122+ if (cpu_usage >= 10)
123+ list.add ({app, cpu_usage});
124+ });
125+
126+ list.sort ((a, b) => {
127+ if (a.cpu_usage < b.cpu_usage)
128+ return 1;
129+
130+ if (a.cpu_usage > b.cpu_usage)
131+ return -1;
132+
133+ return 0;
134+ });
135+
136+ return count < list.size ? list.slice (0, count) : list;
137+ }
138+
139+ private double get_cpu_usage_for_app (Bamf.Application app) {
140+ double cpu_usage_sum = 0;
141+
142+ foreach (var window in app.get_windows ()) {
143+ var window_type = window.get_window_type ();
144+
145+ if (window_type != Bamf.WindowType.DOCK && window_type != Bamf.WindowType.MENU)
146+ cpu_usage_sum += get_sub_process_cpu_usage_sum ((int)window.get_pid ());
147+ }
148+
149+ return cpu_usage_sum;
150+ }
151+
152+ private double get_sub_process_cpu_usage_sum (int parent_pid) {
153+ var sub_processes = ProcessMonitor.Monitor.get_default ().get_sub_processes (parent_pid);
154+
155+ double cpu_usage_sum = get_process_cpu_usage (parent_pid);
156+
157+ foreach (int sp_pid in sub_processes) {
158+ cpu_usage_sum += get_sub_process_cpu_usage_sum (sp_pid);
159+ }
160+
161+ return cpu_usage_sum;
162+ }
163+
164+ private double get_process_cpu_usage (int pid) {
165+ var process = ProcessMonitor.Monitor.get_default ().get_process (pid);
166+
167+ if (process != null)
168+ return process.cpu_usage;
169+
170+ return 0;
171+ }
172+
173+ public static AppManager get_default () {
174+ if (instance == null)
175+ instance = new AppManager ();
176+
177+ return instance;
178+ }
179+}
180
181=== added directory 'src/Services/ProcessMonitor'
182=== added file 'src/Services/ProcessMonitor/Monitor.vala'
183--- src/Services/ProcessMonitor/Monitor.vala 1970-01-01 00:00:00 +0000
184+++ src/Services/ProcessMonitor/Monitor.vala 2015-08-03 21:04:36 +0000
185@@ -0,0 +1,215 @@
186+/*
187+ * Copyright (c) 2011-2015 Wingpanel Developers (http://launchpad.net/wingpanel)
188+ *
189+ * This program is free software; you can redistribute it and/or
190+ * modify it under the terms of the GNU General Public
191+ * License as published by the Free Software Foundation; either
192+ * version 2 of the License, or (at your option) any later version.
193+ *
194+ * This program is distributed in the hope that it will be useful,
195+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
196+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
197+ * General Public License for more details.
198+ *
199+ * You should have received a copy of the GNU General Public
200+ * License along with this program; if not, write to the
201+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
202+ * Boston, MA 02111-1307, USA.
203+ */
204+
205+public class Power.Services.ProcessMonitor.Monitor : Object {
206+ public double cpu_load { get; private set; }
207+ public double[] cpu_loads { get; private set; }
208+
209+ uint64 cpu_last_used = 0;
210+ uint64 cpu_last_total = 0;
211+ uint64[] cpu_last_useds = new uint64[32];
212+ uint64[] cpu_last_totals = new uint64[32];
213+
214+ private Gee.HashMap<int, Process> process_list;
215+ private Gee.HashSet<int> kernel_process_blacklist;
216+
217+ public signal void process_added (int pid, Process process);
218+ public signal void process_removed (int pid);
219+ public signal void updated ();
220+
221+ private static Monitor? instance = null;
222+
223+ /**
224+ * Construct a new ProcessMonitor
225+ */
226+ private Monitor () {
227+ debug ("Initialising process monitor.");
228+
229+ process_list = new Gee.HashMap<int, Process> ();
230+ kernel_process_blacklist = new Gee.HashSet<int> ();
231+ update_processes.begin ();
232+ cpu_load = 0;
233+ }
234+
235+ public void update () {
236+ update_processes.begin ();
237+
238+ /* Do it one more time for better accuracy */
239+ Timeout.add (100, () => {
240+ update_processes.begin ();
241+
242+ return false;
243+ });
244+ }
245+
246+ public static Monitor get_default () {
247+ if (instance == null) {
248+ instance = new Monitor ();
249+ }
250+
251+ return instance;
252+ }
253+
254+ /**
255+ * Gets a process by its pid, making sure that it's updated.
256+ */
257+ public Process? get_process (int pid) {
258+ /* if the process is in the kernel blacklist, we don't want to deal with it. */
259+ if (kernel_process_blacklist.contains (pid)) {
260+ return null;
261+ }
262+
263+ /* else, return our cached version. */
264+ if (process_list.has_key (pid)) {
265+ return process_list[pid];
266+ }
267+
268+ /*
269+ * else return the result of add_process
270+ * make sure to lazily call the callback since this is a greedy add
271+ * this way we don't interrupt whatever this method is being called for
272+ */
273+
274+ /* with a handle_add_process */
275+ return add_process (pid, true);
276+ }
277+
278+ /**
279+ * Returns all direct sub processes of this process
280+ */
281+ public Gee.Set<int> get_sub_processes (int pid) {
282+ var sub_processes = new Gee.HashSet<int> ();
283+
284+ /* go through and add all of the processes with PPID set to this one */
285+ foreach (var process in process_list.values) {
286+ if (process.ppid == pid) {
287+ sub_processes.add (process.pid);
288+ }
289+ }
290+
291+ return sub_processes;
292+ }
293+
294+ /**
295+ * Gets a read only map of the processes currently cached
296+ */
297+ public Gee.Map<int, Process> get_process_list () {
298+ return process_list.read_only_view;
299+ }
300+
301+ /**
302+ * Gets all new process and adds them
303+ */
304+ private async void update_processes () {
305+ /* CPU */
306+ GTop.Cpu cpu_data;
307+ GTop.get_cpu (out cpu_data);
308+ var used = cpu_data.user + cpu_data.nice + cpu_data.sys;
309+ cpu_load = ((double)(used - cpu_last_used)) / (cpu_data.total - cpu_last_total);
310+ cpu_loads = new double[cpu_data.xcpu_user.length];
311+ var useds = new uint64[cpu_data.xcpu_user.length];
312+
313+ for (int i = 0; i < cpu_data.xcpu_user.length; i++) {
314+ useds[i] = cpu_data.xcpu_user[i] + cpu_data.xcpu_nice[i] + cpu_data.xcpu_sys[i];
315+ }
316+
317+ for (int i = 0; i < cpu_data.xcpu_user.length; i++) {
318+ cpu_loads[i] = ((double)(useds[i] - cpu_last_useds[i])) /
319+ (cpu_data.xcpu_total[i] - cpu_last_totals[i]);
320+ }
321+
322+ var remove_me = new Gee.HashSet<int> ();
323+
324+ /* go through each process and update it, removing the old ones */
325+ foreach (var process in process_list.values) {
326+ if (!process.update (cpu_data.total, cpu_last_total)) {
327+ /* process doesn't exist any more, flag it for removal! */
328+ remove_me.add (process.pid);
329+ }
330+ }
331+
332+ /* remove everything from flags */
333+ foreach (var pid in remove_me) {
334+ remove_process (pid);
335+ }
336+
337+ var uid = Posix.getuid ();
338+ GTop.ProcList proclist;
339+ var pids = GTop.get_proclist (out proclist, GTop.GLIBTOP_KERN_PROC_UID, uid);
340+
341+ for (int i = 0; i < proclist.number; i++) {
342+ int pid = pids[i];
343+
344+ if (!process_list.has_key (pid) && !kernel_process_blacklist.contains (pid)) {
345+ add_process (pid);
346+ }
347+ }
348+
349+ cpu_last_used = used;
350+ cpu_last_total = cpu_data.total;
351+ cpu_last_useds = useds;
352+ cpu_last_totals = cpu_data.xcpu_total;
353+
354+ /* call the updated signal so that subscribers can update */
355+ updated ();
356+ }
357+
358+ /**
359+ * Parses a pid and adds a Process to our process_list or to the kernel_blacklist
360+ *
361+ * returns the created process
362+ */
363+ private Process? add_process (int pid, bool lazy_signal = false) {
364+ /* create the process */
365+ var process = new Process (pid);
366+
367+ if (process.exists) {
368+ if (process.pgrp != 0) {
369+ /* regular process, add it to our cache */
370+ process_list.set (pid, process);
371+
372+ /* call the signal, lazily if needed */
373+ if (lazy_signal) {
374+ Idle.add (() => { process_added (pid, process); return false; });
375+ } else {
376+ process_added (pid, process);
377+ }
378+
379+ return process;
380+ } else {
381+ /* add it to our kernel processes blacklist */
382+ kernel_process_blacklist.add (pid);
383+ }
384+ }
385+
386+ return null;
387+ }
388+
389+ /**
390+ * Remove the process from all lists and broadcast the process_removed signal if removed.
391+ */
392+ private void remove_process (int pid) {
393+ if (process_list.has_key (pid)) {
394+ process_list.unset (pid);
395+ process_removed (pid);
396+ } else if (kernel_process_blacklist.contains (pid)) {
397+ kernel_process_blacklist.remove (pid);
398+ }
399+ }
400+}
401\ No newline at end of file
402
403=== added file 'src/Services/ProcessMonitor/Process.vala'
404--- src/Services/ProcessMonitor/Process.vala 1970-01-01 00:00:00 +0000
405+++ src/Services/ProcessMonitor/Process.vala 2015-08-03 21:04:36 +0000
406@@ -0,0 +1,176 @@
407+/*
408+ * Copyright (c) 2011-2015 Wingpanel Developers (http://launchpad.net/wingpanel)
409+ *
410+ * This program is free software; you can redistribute it and/or
411+ * modify it under the terms of the GNU General Public
412+ * License as published by the Free Software Foundation; either
413+ * version 2 of the License, or (at your option) any later version.
414+ *
415+ * This program is distributed in the hope that it will be useful,
416+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
417+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
418+ * General Public License for more details.
419+ *
420+ * You should have received a copy of the GNU General Public
421+ * License along with this program; if not, write to the
422+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
423+ * Boston, MA 02111-1307, USA.
424+ */
425+
426+public class Power.Services.ProcessMonitor.Process : Object {
427+ /**
428+ * Whether or not the PID leads to something
429+ */
430+ public bool exists { get; private set; }
431+
432+ /**
433+ * Process ID
434+ */
435+ public int pid { get; private set; }
436+
437+ /**
438+ * Parent Process ID
439+ */
440+ public int ppid { get; private set; }
441+
442+ /**
443+ * Process Group ID; 0 if a kernal process/thread
444+ */
445+ public int pgrp { get; private set; }
446+
447+ /**
448+ * Command from stat file, truncated to 16 chars
449+ */
450+ public string comm { get; private set; }
451+
452+ /**
453+ * Full command from cmdline file
454+ */
455+ public string command { get; private set; }
456+
457+ /**
458+ * CPU usage of this process from the last time that it was updated, measured in percent
459+ *
460+ * Will be 0 on first update.
461+ */
462+ public double cpu_usage { get; private set; }
463+
464+ private uint64 cpu_last_used;
465+
466+ /**
467+ * Construct a new process
468+ */
469+ public Process (int _pid) {
470+ pid = _pid;
471+
472+ cpu_usage = 0;
473+
474+ exists = read_stat (0, 1);
475+ read_cmdline ();
476+ }
477+
478+ /**
479+ * Updates the process to get latest information
480+ *
481+ * Returns if the update was successful
482+ */
483+ public bool update (uint64 cpu_total, uint64 cpu_last_total) {
484+ exists = read_stat (cpu_total, cpu_last_total);
485+
486+ return exists;
487+ }
488+
489+ /**
490+ * Reads the /proc/%pid%/stat file and updates the process with the information therein.
491+ */
492+ private bool read_stat (uint64 cpu_total, uint64 cpu_last_total) {
493+ /* grab the stat file from /proc/%pid%/stat */
494+ var stat_file = File.new_for_path ("/proc/%d/stat".printf (pid));
495+
496+ /* make sure that it exists, not an error if it doesn't */
497+ if (!stat_file.query_exists ()) {
498+ return false;
499+ }
500+
501+ try {
502+ /* read the single line from the file */
503+ var dis = new DataInputStream (stat_file.read ());
504+ string? stat_contents = dis.read_line ();
505+
506+ if (stat_contents == null) {
507+ stderr.printf ("Error reading stat file '%s': couldn't read_line ()\n", stat_file.get_path ());
508+
509+ return false;
510+ }
511+
512+ /* split the contents into an array and parse each value that we care about */
513+ var stat = stat_contents.split (" ");
514+
515+ comm = stat[1][1 : -1];
516+
517+ ppid = int.parse (stat[3]);
518+ pgrp = int.parse (stat[4]);
519+
520+ GTop.ProcTime proc_time;
521+ GTop.get_proc_time (out proc_time, pid);
522+ cpu_usage = ((double)(proc_time.rtime - cpu_last_used)) / (cpu_total - cpu_last_total);
523+ cpu_last_used = proc_time.rtime;
524+ } catch (Error e) {
525+ stderr.printf ("Error reading stat file '%s': %s\n", stat_file.get_path (), e.message);
526+
527+ return false;
528+ }
529+
530+ return true;
531+ }
532+
533+ /**
534+ * Reads the /proc/%pid%/cmdline file and updates from the information contained therein.
535+ */
536+ private bool read_cmdline () {
537+ /* grab the cmdline file from /proc/%pid%/cmdline */
538+ var cmdline_file = File.new_for_path ("/proc/%d/cmdline".printf (pid));
539+
540+ /* make sure that it exists */
541+ if (!cmdline_file.query_exists ()) {
542+ stderr.printf ("File '%s' doesn't exist.\n", cmdline_file.get_path ());
543+
544+ return false;
545+ }
546+
547+ try {
548+ /* read the single line from the file */
549+ var dis = new DataInputStream (cmdline_file.read ());
550+ uint8[] cmdline_contents_array = new uint8[4097]; /* 4096 is max size with a null terminator */
551+ var size = dis.read (cmdline_contents_array);
552+
553+ if (size <= 0) {
554+ /* was empty, not an error */
555+ return true;
556+ }
557+
558+ /*
559+ * cmdline is a single line file with each arg seperated by a null character ('\0')
560+ * convert all \0 and \n to spaces
561+ */
562+ for (int pos = 0; pos < size; pos++) {
563+ if (cmdline_contents_array[pos] == '\0' || cmdline_contents_array[pos] == '\n') {
564+ cmdline_contents_array[pos] = ' ';
565+ }
566+ }
567+
568+ cmdline_contents_array[size] = '\0';
569+ string cmdline_contents = (string)cmdline_contents_array;
570+
571+ /* TODO: need to make sure that this works */
572+ command = cmdline_contents;
573+ }
574+ catch (Error e) {
575+ stderr.printf ("Error reading cmdline file '%s': %s\n", cmdline_file.get_path (), e.message);
576+
577+ return false;
578+ }
579+
580+ return true;
581+ }
582+}
583\ No newline at end of file
584
585=== added file 'src/Widgets/AppList.vala'
586--- src/Widgets/AppList.vala 1970-01-01 00:00:00 +0000
587+++ src/Widgets/AppList.vala 2015-08-03 21:04:36 +0000
588@@ -0,0 +1,99 @@
589+/*-
590+ * Copyright (c) 2015 Wingpanel Developers (http://launchpad.net/wingpanel)
591+ *
592+ * This program is free software: you can redistribute it and/or modify
593+ * it under the terms of the GNU Library General Public License as published by
594+ * the Free Software Foundation, either version 2.1 of the License, or
595+ * (at your option) any later version.
596+ *
597+ * This program is distributed in the hope that it will be useful,
598+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
599+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
600+ * GNU Library General Public License for more details.
601+ *
602+ * You should have received a copy of the GNU Library General Public License
603+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
604+ */
605+
606+public class Power.Widgets.AppList : Gtk.Box {
607+ private Services.AppManager app_manager;
608+
609+ public AppList () {
610+ Object (orientation: Gtk.Orientation.VERTICAL);
611+
612+ app_manager = Services.AppManager.get_default ();
613+
614+ connect_signals ();
615+ }
616+
617+ public void clear_list () {
618+ foreach (var child in this.get_children ())
619+ this.remove (child);
620+ }
621+
622+ private void connect_signals () {
623+ Services.ProcessMonitor.Monitor.get_default ().updated.connect (() => {
624+ // Don't block the ui while updating the data
625+ Idle.add (() => {
626+ update_list ();
627+
628+ return false;
629+ });
630+ });
631+ }
632+
633+ private void update_list () {
634+ clear_list ();
635+
636+ var eaters = app_manager.get_top_power_eaters (12);
637+
638+ if (eaters.size > 0) {
639+ var title_label = new Gtk.Label (_("Apps Using Lots of Power"));
640+ title_label.get_style_context ().add_class ("h4");
641+ title_label.halign = Gtk.Align.START;
642+ title_label.margin_start = 12;
643+ title_label.margin_end = 12;
644+ title_label.margin_bottom = 6;
645+
646+ this.add (new Wingpanel.Widgets.Separator ());
647+ this.add (title_label);
648+ }
649+
650+ eaters.@foreach ((power_eater) => {
651+ add_app (power_eater);
652+
653+ return true;
654+ });
655+ }
656+
657+ private void add_app (Services.AppManager.PowerEater power_eater) {
658+ var desktop_app_info = new DesktopAppInfo.from_filename (power_eater.application.get_desktop_file ());
659+
660+ if (desktop_app_info == null)
661+ return;
662+
663+ var app_icon = desktop_app_info.get_icon ();
664+ var app_name = desktop_app_info.get_name ();
665+
666+ if (app_icon == null || app_name == null)
667+ return;
668+
669+ var grid = new Gtk.Grid ();
670+ grid.column_spacing = 6;
671+ grid.margin_start = 12;
672+ grid.margin_end = 12;
673+ grid.margin_bottom = 6;
674+
675+ var app_icon_image = new Gtk.Image.from_gicon (app_icon, Gtk.IconSize.LARGE_TOOLBAR);
676+ app_icon_image.pixel_size = 24;
677+
678+ var app_name_label = new Gtk.Label (app_name);
679+ app_name_label.halign = Gtk.Align.START;
680+
681+ grid.attach (app_icon_image, 0, 0, 1, 1);
682+ grid.attach (app_name_label, 1, 0, 1, 1);
683+
684+ this.add (grid);
685+ this.show_all ();
686+ }
687+}
688
689=== modified file 'src/Widgets/DeviceList.vala'
690--- src/Widgets/DeviceList.vala 2015-05-24 15:18:38 +0000
691+++ src/Widgets/DeviceList.vala 2015-08-03 21:04:36 +0000
692@@ -31,7 +31,7 @@
693 Services.DeviceManager.get_default ().battery_deregistered.connect (remove_battery);
694 }
695
696- private void add_battery (string device_path, Services.Device battery) {
697+ private void add_battery (string device_path, Services.Device battery) {
698 var grid = new Gtk.Grid ();
699 grid.column_spacing = 6;
700 grid.row_spacing = 6;
701
702=== modified file 'src/Widgets/PopoverWidget.vala'
703--- src/Widgets/PopoverWidget.vala 2015-07-17 20:47:51 +0000
704+++ src/Widgets/PopoverWidget.vala 2015-08-03 21:04:36 +0000
705@@ -19,9 +19,9 @@
706 private const string SETTINGS_EXEC = "/usr/bin/switchboard power";
707
708 private DeviceList device_list;
709+ private AppList app_list;
710
711 private Wingpanel.Widgets.Switch show_percent_switch;
712-
713 private Wingpanel.Widgets.Button show_settings_button;
714
715 public signal void settings_shown ();
716@@ -33,19 +33,21 @@
717 connect_signals ();
718 }
719
720+ public void slim_down () {
721+ app_list.clear_list ();
722+ }
723+
724 private void build_ui () {
725 device_list = new DeviceList ();
726+ app_list = new AppList ();
727+
728+ show_percent_switch = new Wingpanel.Widgets.Switch (_("Show Percentage"), Services.SettingsManager.get_default ().show_percentage);
729+ show_settings_button = new Wingpanel.Widgets.Button (_("Power Settings…"));
730
731 this.pack_start (device_list);
732-
733+ this.pack_start (app_list); // The app-list contains an own separator that is displayed if necessary.
734 this.pack_start (new Wingpanel.Widgets.Separator ());
735-
736- show_percent_switch = new Wingpanel.Widgets.Switch (_("Show Percentage"), Services.SettingsManager.get_default ().show_percentage);
737-
738 this.pack_start (show_percent_switch);
739-
740- show_settings_button = new Wingpanel.Widgets.Button (_("Power Settings…"));
741-
742 this.pack_start (show_settings_button);
743 }
744
745
746=== added directory 'vapi'
747=== added file 'vapi/libgtop-2.0.vapi'
748--- vapi/libgtop-2.0.vapi 1970-01-01 00:00:00 +0000
749+++ vapi/libgtop-2.0.vapi 2015-08-03 21:04:36 +0000
750@@ -0,0 +1,1314 @@
751+/*
752+ * libgtop-2.0.vapi - modified from the output generated by vapigen.
753+ */
754+
755+[CCode (cprefix = "GTop", gir_namespace = "GTop", gir_version = "2.0", lower_case_cprefix = "g_top_")]
756+namespace GTop {
757+
758+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop", cprefix = "glibtop_", has_type_id = false)]
759+ public struct Context {
760+
761+ public uint flags;
762+ public uint method;
763+ public uint error_method;
764+ [CCode (array_length = false, array_null_terminated = true)]
765+ public weak int[] input;
766+ [CCode (array_length = false, array_null_terminated = true)]
767+ public weak int[] output;
768+ public int socket;
769+ public int ncpu;
770+ public int real_ncpu;
771+ public uint os_version_code;
772+ public weak string name;
773+ public weak string server_command;
774+ public weak string server_host;
775+ public weak string server_user;
776+ public weak string server_rsh;
777+ public uint features;
778+ public uint server_port;
779+ public GTop.SysDeps sysdeps;
780+ public GTop.SysDeps required;
781+ public int pid;
782+
783+ public void close_p ();
784+ public void close_r ();
785+ public void close_s ();
786+ public void get_cpu_l (out GTop.Cpu buf);
787+ public void get_cpu_s (out GTop.Cpu buf);
788+ public void get_fsusage_l (out GTop.FsUsage buf, string mount_dir);
789+ public void get_fsusage_s (out GTop.FsUsage buf, string mount_dir);
790+ public void get_loadavg_l (out GTop.LoadAvg buf);
791+ public void get_loadavg_s (out GTop.LoadAvg buf);
792+ public void get_mem_l (out GTop.Memory buf);
793+ public void get_mem_s (out GTop.Memory buf);
794+ public void get_msg_limits_l (out GTop.MsgLimits buf);
795+ public void get_msg_limits_s (out GTop.MsgLimits buf);
796+ public void get_netload_l (out GTop.NetLoad buf, string @interface);
797+ public void get_netload_s (out GTop.NetLoad buf, string @interface);
798+ public ulong get_parameter_l (uint parameter, void* data_ptr, ulong data_size);
799+ public void get_ppp_l (out GTop.Ppp buf, ushort device);
800+ public void get_ppp_s (out GTop.Ppp buf, ushort device);
801+ public uint16 get_proc_affinity_l (out GTop.ProcAffinity buf, int pid);
802+ public uint16 get_proc_affinity_s (out GTop.ProcAffinity buf, int pid);
803+ public string get_proc_args_l (out GTop.ProcArgs buf, int pid, uint max_len);
804+ public string get_proc_args_s (out GTop.ProcArgs buf, int pid, uint max_len);
805+ public void get_proc_kernel_l (out GTop.ProcKernel buf, int pid);
806+ public void get_proc_kernel_s (out GTop.ProcKernel buf, int pid);
807+ public void get_proc_mem_l (out GTop.ProcMem buf, int pid);
808+ public void get_proc_mem_s (out GTop.ProcMem buf, int pid);
809+ public void get_proc_segment_l (out GTop.ProcSegment buf, int pid);
810+ public void get_proc_segment_s (out GTop.ProcSegment buf, int pid);
811+ public void get_proc_signal_l (out GTop.ProcSignal buf, int pid);
812+ public void get_proc_signal_s (out GTop.ProcSignal buf, int pid);
813+ public void get_proc_state_l (out GTop.ProcState buf, int pid);
814+ public void get_proc_state_s (out GTop.ProcState buf, int pid);
815+ public void get_proc_time_l (out GTop.ProcTime buf, int pid);
816+ public void get_proc_time_s (out GTop.ProcTime buf, int pid);
817+ public void get_proc_uid_l (out GTop.ProcUid buf, int pid);
818+ public void get_proc_uid_s (out GTop.ProcUid buf, int pid);
819+ public int get_proclist_l (out GTop.ProcList buf, int64 which, int64 arg);
820+ public int get_proclist_s (out GTop.ProcList buf, int64 which, int64 arg);
821+ public void get_sem_limits_l (out GTop.SemLimits buf);
822+ public void get_sem_limits_s (out GTop.SemLimits buf);
823+ public void get_shm_limits_l (out GTop.ShmLimits buf);
824+ public void get_shm_limits_s (out GTop.ShmLimits buf);
825+ public void get_swap_l (out GTop.Swap buf);
826+ public void get_swap_s (out GTop.Swap buf);
827+ public void get_sysdeps_r (out GTop.SysDeps buf);
828+ public unowned GTop.SysInfo? get_sysinfo_s ();
829+ public void get_uptime_l (out GTop.Uptime buf);
830+ public void get_uptime_s (out GTop.Uptime buf);
831+ public void init_p (ulong features, uint flags);
832+ public void open_l (string program_name, ulong features, uint flags);
833+ public void open_p (string program_name, ulong features, uint flags);
834+ public void open_s (string program_name, ulong features, uint flags);
835+ public void set_parameter_l (uint parameter, void* data_ptr, ulong data_size);
836+ }
837+
838+ [CCode (cheader_filename = "glibtop/command.h", cname = "glibtop_command", has_type_id = false)]
839+ public struct Command {
840+ public uint64 command;
841+ public uint64 size;
842+ public uint64 data_size;
843+ [CCode (array_length = false, array_null_terminated = true)]
844+ public weak char[] parameter;
845+ }
846+
847+ [CCode (cheader_filename = "glibtop/cpu.h", cname = "glibtop_cpu", has_type_id = false)]
848+ public struct Cpu {
849+ public uint64 flags;
850+ public uint64 total;
851+ public uint64 user;
852+ public uint64 nice;
853+ public uint64 sys;
854+ public uint64 idle;
855+ public uint64 iowait;
856+ public uint64 irq;
857+ public uint64 softirq;
858+ public uint64 frequency;
859+ [CCode (array_length = false, array_null_terminated = true)]
860+ public weak uint64[] xcpu_total;
861+ [CCode (array_length = false, array_null_terminated = true)]
862+ public weak uint64[] xcpu_user;
863+ [CCode (array_length = false, array_null_terminated = true)]
864+ public weak uint64[] xcpu_nice;
865+ [CCode (array_length = false, array_null_terminated = true)]
866+ public weak uint64[] xcpu_sys;
867+ [CCode (array_length = false, array_null_terminated = true)]
868+ public weak uint64[] xcpu_idle;
869+ [CCode (array_length = false, array_null_terminated = true)]
870+ public weak uint64[] xcpu_iowait;
871+ [CCode (array_length = false, array_null_terminated = true)]
872+ public weak uint64[] xcpu_irq;
873+ [CCode (array_length = false, array_null_terminated = true)]
874+ public weak uint64[] xcpu_softirq;
875+ public uint64 xcpu_flags;
876+ }
877+
878+ [CCode (cheader_filename = "glibtop/sysinfo.h", cname = "glibtop_entry", has_type_id = false)]
879+ public struct Entry {
880+ public weak GLib.GenericArray<void*> labels;
881+ public weak GLib.HashTable<void*,void*> values;
882+ public weak GLib.HashTable<void*,void*> descriptions;
883+ }
884+
885+ [CCode (cheader_filename = "glibtop/fsusage.h", cname = "glibtop_fsusage", has_type_id = false)]
886+ public struct FsUsage {
887+ public uint64 flags;
888+ public uint64 blocks;
889+ public uint64 bfree;
890+ public uint64 bavail;
891+ public uint64 files;
892+ public uint64 ffree;
893+ public uint32 block_size;
894+ public uint64 read;
895+ public uint64 write;
896+ }
897+
898+ [CCode (cheader_filename = "glibtop/loadavg.h", cname = "glibtop_loadavg", has_type_id = false)]
899+ public struct LoadAvg {
900+ public uint64 flags;
901+ [CCode (array_length = false, array_null_terminated = true)]
902+ public weak double[] loadavg;
903+ public uint64 nr_running;
904+ public uint64 nr_tasks;
905+ public uint64 last_pid;
906+ }
907+
908+ [CCode (cheader_filename = "glibtop/procmap.h", cname = "glibtop_map_entry", has_type_id = false)]
909+ public struct MapEntry {
910+ public uint64 flags;
911+ public uint64 start;
912+ public uint64 end;
913+ public uint64 offset;
914+ public uint64 perm;
915+ public uint64 inode;
916+ public uint64 device;
917+ public uint64 size;
918+ public uint64 rss;
919+ public uint64 shared_clean;
920+ public uint64 shared_dirty;
921+ public uint64 private_clean;
922+ public uint64 private_dirty;
923+ [CCode (array_length = false, array_null_terminated = true)]
924+ public weak char[] filename;
925+ }
926+
927+ [CCode (cheader_filename = "glibtop/mem.h", cname = "glibtop_mem", has_type_id = false)]
928+ public struct Memory {
929+ public uint64 flags;
930+ public uint64 total;
931+ public uint64 used;
932+ public uint64 free;
933+ public uint64 shared;
934+ public uint64 buffer;
935+ public uint64 cached;
936+ public uint64 user;
937+ public uint64 locked;
938+ }
939+
940+ [CCode (cheader_filename = "glibtop/mountlist.h", cname = "glibtop_mountentry", has_type_id = false)]
941+ public struct MountEntry {
942+ public uint64 dev;
943+ [CCode (array_length = false, array_null_terminated = true)]
944+ public weak char[] devname;
945+ [CCode (array_length = false, array_null_terminated = true)]
946+ public weak char[] mountdir;
947+ [CCode (array_length = false, array_null_terminated = true)]
948+ public weak char[] type;
949+ }
950+
951+ [CCode (cheader_filename = "glibtop/mountlist.h", cname = "glibtop_mountlist", has_type_id = false)]
952+ public struct MountList {
953+ public uint64 flags;
954+ public uint64 number;
955+ public uint64 total;
956+ public uint64 size;
957+ }
958+
959+ [CCode (cheader_filename = "glibtop/msg_limits.h", cname = "glibtop_msg_limits", has_type_id = false)]
960+ public struct MsgLimits {
961+ public uint64 flags;
962+ public uint64 msgpool;
963+ public uint64 msgmap;
964+ public uint64 msgmax;
965+ public uint64 msgmnb;
966+ public uint64 msgmni;
967+ public uint64 msgssz;
968+ public uint64 msgtql;
969+ }
970+
971+ [CCode (cheader_filename = "glibtop/netlist.h", cname = "glibtop_netlist", has_type_id = false)]
972+ public struct NetList {
973+ public uint64 flags;
974+ public uint32 number;
975+ }
976+
977+ [CCode (cheader_filename = "glibtop/netload.h", cname = "glibtop_netload", has_type_id = false)]
978+ public struct NetLoad {
979+ public uint64 flags;
980+ public uint64 if_flags;
981+ public uint32 mtu;
982+ public uint32 subnet;
983+ public uint32 address;
984+ public uint64 packets_in;
985+ public uint64 packets_out;
986+ public uint64 packets_total;
987+ public uint64 bytes_in;
988+ public uint64 bytes_out;
989+ public uint64 bytes_total;
990+ public uint64 errors_in;
991+ public uint64 errors_out;
992+ public uint64 errors_total;
993+ public uint64 collisions;
994+ [CCode (array_length = false, array_null_terminated = true)]
995+ public weak uint8[] address6;
996+ [CCode (array_length = false, array_null_terminated = true)]
997+ public weak uint8[] prefix6;
998+ public uint8 scope6;
999+ [CCode (array_length = false, array_null_terminated = true)]
1000+ public weak uint8[] hwaddress;
1001+ }
1002+
1003+ [CCode (cheader_filename = "glibtop/procopenfiles.h", cname = "glibtop_open_files_entry", has_type_id = false)]
1004+ public struct OpenFilesEntry {
1005+ public int fd;
1006+ public uint16 type;
1007+ [CCode (array_length = false, array_null_terminated = true, cname = "info.sock.dest_host")]
1008+ public weak char[] info_sock_dest_host;
1009+ [CCode (cname = "info.sock.dest_port")]
1010+ public int info_sock_dest_port;
1011+ [CCode (array_length = false, array_null_terminated = true, cname = "info.file.name")]
1012+ public weak char[] info_file_name;
1013+ [CCode (array_length = false, array_null_terminated = true, cname = "info.localsock.name")]
1014+ public weak char[] info_localsock_name;
1015+ }
1016+
1017+ [CCode (cheader_filename = "glibtop/ppp.h", cname = "glibtop_ppp", has_type_id = false)]
1018+ public struct Ppp {
1019+ public uint64 flags;
1020+ public uint64 state;
1021+ public uint64 bytes_in;
1022+ public uint64 bytes_out;
1023+ }
1024+
1025+ [CCode (cheader_filename = "glibtop/procaffinity.h", cname = "glibtop_proc_affinity", has_type_id = false)]
1026+ public struct ProcAffinity {
1027+ public uint64 flags;
1028+ public uint32 number;
1029+ public bool all;
1030+ }
1031+
1032+ [CCode (cheader_filename = "glibtop/procargs.h", cname = "glibtop_proc_args", has_type_id = false)]
1033+ public struct ProcArgs {
1034+ public uint64 flags;
1035+ public uint64 size;
1036+ }
1037+
1038+ [CCode (cheader_filename = "glibtop/prockernel.h", cname = "glibtop_proc_kernel", has_type_id = false)]
1039+ public struct ProcKernel {
1040+ public uint64 flags;
1041+ public uint64 k_flags;
1042+ public uint64 min_flt;
1043+ public uint64 maj_flt;
1044+ public uint64 cmin_flt;
1045+ public uint64 cmaj_flt;
1046+ public uint64 kstk_esp;
1047+ public uint64 kstk_eip;
1048+ public uint64 nwchan;
1049+ [CCode (array_length = false, array_null_terminated = true)]
1050+ public weak char[] wchan;
1051+ }
1052+
1053+ [CCode (cheader_filename = "glibtop/procmap.h", cname = "glibtop_proc_map", has_type_id = false)]
1054+ public struct ProcMap {
1055+ public uint64 flags;
1056+ public uint64 number;
1057+ public uint64 total;
1058+ public uint64 size;
1059+ }
1060+
1061+ [CCode (cheader_filename = "glibtop/procmem.h", cname = "glibtop_proc_mem", has_type_id = false)]
1062+ public struct ProcMem {
1063+ public uint64 flags;
1064+ public uint64 size;
1065+ public uint64 vsize;
1066+ public uint64 resident;
1067+ public uint64 share;
1068+ public uint64 rss;
1069+ public uint64 rss_rlim;
1070+ }
1071+
1072+ [CCode (cheader_filename = "glibtop/procopenfiles.h", cname = "glibtop_proc_open_files", has_type_id = false)]
1073+ public struct ProcOpenFiles {
1074+ public uint64 flags;
1075+ public uint64 number;
1076+ public uint64 total;
1077+ public uint64 size;
1078+ }
1079+
1080+ [CCode (cheader_filename = "glibtop/procsegment.h", cname = "glibtop_proc_segment", has_type_id = false)]
1081+ public struct ProcSegment {
1082+ public uint64 flags;
1083+ public uint64 text_rss;
1084+ public uint64 shlib_rss;
1085+ public uint64 data_rss;
1086+ public uint64 stack_rss;
1087+ public uint64 dirty_size;
1088+ public uint64 start_code;
1089+ public uint64 end_code;
1090+ public uint64 start_stack;
1091+ }
1092+
1093+ [CCode (cheader_filename = "glibtop/procsignal.h", cname = "glibtop_proc_signal", has_type_id = false)]
1094+ public struct ProcSignal {
1095+ public uint64 flags;
1096+ [CCode (array_length = false, array_null_terminated = true)]
1097+ public weak uint64[] @signal;
1098+ [CCode (array_length = false, array_null_terminated = true)]
1099+ public weak uint64[] blocked;
1100+ [CCode (array_length = false, array_null_terminated = true)]
1101+ public weak uint64[] sigignore;
1102+ [CCode (array_length = false, array_null_terminated = true)]
1103+ public weak uint64[] sigcatch;
1104+ }
1105+
1106+ [CCode (cheader_filename = "glibtop/procstate.h", cname = "glibtop_proc_state", has_type_id = false)]
1107+ public struct ProcState {
1108+ public uint64 flags;
1109+ [CCode (array_length = false, array_null_terminated = true)]
1110+ public weak char[] cmd;
1111+ public uint state;
1112+ public int uid;
1113+ public int gid;
1114+ public int ruid;
1115+ public int rgid;
1116+ public int has_cpu;
1117+ public int processor;
1118+ public int last_processor;
1119+ }
1120+
1121+ [CCode (cheader_filename = "glibtop/proctime.h", cname = "glibtop_proc_time", has_type_id = false)]
1122+ public struct ProcTime {
1123+ public uint64 flags;
1124+ public uint64 start_time;
1125+ public uint64 rtime;
1126+ public uint64 utime;
1127+ public uint64 stime;
1128+ public uint64 cutime;
1129+ public uint64 cstime;
1130+ public uint64 timeout;
1131+ public uint64 it_real_value;
1132+ public uint64 frequency;
1133+ [CCode (array_length = false, array_null_terminated = true)]
1134+ public weak uint64[] xcpu_utime;
1135+ [CCode (array_length = false, array_null_terminated = true)]
1136+ public weak uint64[] xcpu_stime;
1137+ }
1138+
1139+ [CCode (cheader_filename = "glibtop/procuid.h", cname = "glibtop_proc_uid", has_type_id = false)]
1140+ public struct ProcUid {
1141+ public uint64 flags;
1142+ public int32 uid;
1143+ public int32 euid;
1144+ public int32 gid;
1145+ public int32 egid;
1146+ public int32 suid;
1147+ public int32 sgid;
1148+ public int32 fsuid;
1149+ public int32 fsgid;
1150+ public int32 pid;
1151+ public int32 ppid;
1152+ public int32 pgrp;
1153+ public int32 session;
1154+ public int32 tty;
1155+ public int32 tpgid;
1156+ public int32 priority;
1157+ public int32 nice;
1158+ public int32 ngroups;
1159+ [CCode (array_length = false, array_null_terminated = true)]
1160+ public weak int32[] groups;
1161+ }
1162+
1163+ [CCode (cheader_filename = "glibtop/procwd.h", cname = "glibtop_proc_wd", has_type_id = false)]
1164+ public struct ProcWd {
1165+ public uint64 flags;
1166+ public uint32 number;
1167+ [CCode (array_length = false, array_null_terminated = true)]
1168+ public weak char[] root;
1169+ [CCode (array_length = false, array_null_terminated = true)]
1170+ public weak char[] exe;
1171+ }
1172+
1173+ [CCode (cheader_filename = "glibtop/proclist.h", cname = "glibtop_proclist", has_type_id = false)]
1174+ public struct ProcList {
1175+ public uint64 flags;
1176+ public uint64 number;
1177+ public uint64 total;
1178+ public uint64 size;
1179+ }
1180+
1181+ [CCode (cheader_filename = "glibtop/command.h", cname = "glibtop_response", has_type_id = false)]
1182+ public struct Response {
1183+ public int64 offset;
1184+ public uint64 size;
1185+ public uint64 data_size;
1186+ public GTop.ResponseUnion u;
1187+ }
1188+
1189+ [CCode (cheader_filename = "glibtop/command.h", cname = "glibtop_response_union")]
1190+ public struct ResponseUnion {
1191+ public GTop.Union data;
1192+ public GTop.SysDeps sysdeps;
1193+ }
1194+
1195+ [CCode (cheader_filename = "glibtop/sem_limits.h", cname = "glibtop_sem_limits", has_type_id = false)]
1196+ public struct SemLimits {
1197+ public uint64 flags;
1198+ public uint64 semmap;
1199+ public uint64 semmni;
1200+ public uint64 semmns;
1201+ public uint64 semmnu;
1202+ public uint64 semmsl;
1203+ public uint64 semopm;
1204+ public uint64 semume;
1205+ public uint64 semusz;
1206+ public uint64 semvmx;
1207+ public uint64 semaem;
1208+ }
1209+
1210+ [CCode (cheader_filename = "glibtop/shm_limits.h", cname = "glibtop_shm_limits", has_type_id = false)]
1211+ public struct ShmLimits {
1212+ public uint64 flags;
1213+ public uint64 shmmax;
1214+ public uint64 shmmin;
1215+ public uint64 shmmni;
1216+ public uint64 shmseg;
1217+ public uint64 shmall;
1218+ }
1219+
1220+ [CCode (cheader_filename = "glibtop/signal.h", cname = "glibtop_signame", has_type_id = false)]
1221+ public struct SigName {
1222+ public int number;
1223+ public weak string name;
1224+ public weak string label;
1225+ }
1226+
1227+ [CCode (cheader_filename = "glibtop/swap.h", cname = "glibtop_swap", has_type_id = false)]
1228+ public struct Swap {
1229+ public uint64 flags;
1230+ public uint64 total;
1231+ public uint64 used;
1232+ public uint64 free;
1233+ public uint64 pagein;
1234+ public uint64 pageout;
1235+ }
1236+
1237+ [CCode (cheader_filename = "glibtop/sysdeps.h", cname = "glibtop_sysdeps", has_type_id = false)]
1238+ public struct SysDeps {
1239+ public uint64 flags;
1240+ public uint64 features;
1241+ public uint64 cpu;
1242+ public uint64 mem;
1243+ public uint64 swap;
1244+ public uint64 uptime;
1245+ public uint64 loadavg;
1246+ public uint64 shm_limits;
1247+ public uint64 msg_limits;
1248+ public uint64 sem_limits;
1249+ public uint64 proclist;
1250+ public uint64 proc_state;
1251+ public uint64 proc_uid;
1252+ public uint64 proc_mem;
1253+ public uint64 proc_time;
1254+ public uint64 proc_signal;
1255+ public uint64 proc_kernel;
1256+ public uint64 proc_segment;
1257+ public uint64 proc_args;
1258+ public uint64 proc_map;
1259+ public uint64 proc_open_files;
1260+ public uint64 mountlist;
1261+ public uint64 fsusage;
1262+ public uint64 netlist;
1263+ public uint64 netload;
1264+ public uint64 ppp;
1265+ public uint64 proc_wd;
1266+ public uint64 proc_affinity;
1267+ }
1268+
1269+ [CCode (cheader_filename = "glibtop/sysinfo.h", cname = "glibtop_sysinfo", has_type_id = false)]
1270+ public struct SysInfo {
1271+ public uint64 flags;
1272+ public uint64 ncpu;
1273+ [CCode (array_length = false, array_null_terminated = true)]
1274+ public weak GTop.Entry[] cpuinfo;
1275+ }
1276+
1277+ [CCode (cheader_filename = "glibtop/union.h", cname = "glibtop_union")]
1278+ public struct Union {
1279+ public GTop.Cpu cpu;
1280+ public GTop.Memory mem;
1281+ public GTop.Swap swap;
1282+ public GTop.Uptime uptime;
1283+ public GTop.LoadAvg loadavg;
1284+ public GTop.ShmLimits shm_limits;
1285+ public GTop.MsgLimits msg_limits;
1286+ public GTop.SemLimits sem_limits;
1287+ public GTop.ProcList proclist;
1288+ public GTop.ProcState proc_state;
1289+ public GTop.ProcUid proc_uid;
1290+ public GTop.ProcMem proc_mem;
1291+ public GTop.ProcTime proc_time;
1292+ public GTop.ProcSignal proc_signal;
1293+ public GTop.ProcKernel proc_kernel;
1294+ public GTop.ProcSegment proc_segment;
1295+ public GTop.ProcArgs proc_args;
1296+ public GTop.ProcMap proc_map;
1297+ public GTop.MountList mountlist;
1298+ public GTop.FsUsage fsusage;
1299+ public GTop.NetList netlist;
1300+ public GTop.NetLoad netload;
1301+ public GTop.Ppp ppp;
1302+ public GTop.ProcOpenFiles proc_open_files;
1303+ public GTop.ProcWd proc_wd;
1304+ public GTop.ProcAffinity proc_affinity;
1305+ }
1306+
1307+ [CCode (cheader_filename = "glibtop/uptime.h", cname = "glibtop_uptime", has_type_id = false)]
1308+ public struct Uptime {
1309+ public uint64 flags;
1310+ public double uptime;
1311+ public double idletime;
1312+ public uint64 boot_time;
1313+ }
1314+
1315+ [CCode (cheader_filename = "glibtop.h", cname = "AUTH_NAMESZ")]
1316+ public const int AUTH_NAMESZ;
1317+ [CCode (cheader_filename = "glibtop.h", cname = "AUTH_TIMEOUT")]
1318+ public const int AUTH_TIMEOUT;
1319+ [CCode (cheader_filename = "glibtop.h", cname = "CONN_INTERNET")]
1320+ public const int CONN_INTERNET;
1321+ [CCode (cheader_filename = "glibtop.h", cname = "CONN_IPC")]
1322+ public const int CONN_IPC;
1323+ [CCode (cheader_filename = "glibtop.h", cname = "CONN_UNIX")]
1324+ public const int CONN_UNIX;
1325+ [CCode (cheader_filename = "glibtop.h", cname = "DEFAULT_PORT")]
1326+ public const int DEFAULT_PORT;
1327+ [CCode (cheader_filename = "glibtop.h", cname = "DEFAUTH_NAME")]
1328+ public const string DEFAUTH_NAME;
1329+ [CCode (cheader_filename = "glibtop.h", cname = "EOT_CHR")]
1330+ public const int EOT_CHR;
1331+ [CCode (cheader_filename = "glibtop.h", cname = "EOT_STR")]
1332+ public const string EOT_STR;
1333+ [CCode (cheader_filename = "glibtop.h", cname = "FALSE")]
1334+ public const int FALSE;
1335+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_CPU")]
1336+ public const int GLIBTOP_CMND_CPU;
1337+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_FSUSAGE")]
1338+ public const int GLIBTOP_CMND_FSUSAGE;
1339+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_LOADAVG")]
1340+ public const int GLIBTOP_CMND_LOADAVG;
1341+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_MEM")]
1342+ public const int GLIBTOP_CMND_MEM;
1343+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_MOUNTLIST")]
1344+ public const int GLIBTOP_CMND_MOUNTLIST;
1345+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_MSG_LIMITS")]
1346+ public const int GLIBTOP_CMND_MSG_LIMITS;
1347+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_NETLIST")]
1348+ public const int GLIBTOP_CMND_NETLIST;
1349+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_NETLOAD")]
1350+ public const int GLIBTOP_CMND_NETLOAD;
1351+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PPP")]
1352+ public const int GLIBTOP_CMND_PPP;
1353+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROCLIST")]
1354+ public const int GLIBTOP_CMND_PROCLIST;
1355+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_AFFINITY")]
1356+ public const int GLIBTOP_CMND_PROC_AFFINITY;
1357+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_ARGS")]
1358+ public const int GLIBTOP_CMND_PROC_ARGS;
1359+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_KERNEL")]
1360+ public const int GLIBTOP_CMND_PROC_KERNEL;
1361+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_MAP")]
1362+ public const int GLIBTOP_CMND_PROC_MAP;
1363+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_MEM")]
1364+ public const int GLIBTOP_CMND_PROC_MEM;
1365+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_OPEN_FILES")]
1366+ public const int GLIBTOP_CMND_PROC_OPEN_FILES;
1367+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_SEGMENT")]
1368+ public const int GLIBTOP_CMND_PROC_SEGMENT;
1369+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_SIGNAL")]
1370+ public const int GLIBTOP_CMND_PROC_SIGNAL;
1371+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_STATE")]
1372+ public const int GLIBTOP_CMND_PROC_STATE;
1373+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_TIME")]
1374+ public const int GLIBTOP_CMND_PROC_TIME;
1375+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_UID")]
1376+ public const int GLIBTOP_CMND_PROC_UID;
1377+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_PROC_WD")]
1378+ public const int GLIBTOP_CMND_PROC_WD;
1379+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_QUIT")]
1380+ public const int GLIBTOP_CMND_QUIT;
1381+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_SEM_LIMITS")]
1382+ public const int GLIBTOP_CMND_SEM_LIMITS;
1383+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_SHM_LIMITS")]
1384+ public const int GLIBTOP_CMND_SHM_LIMITS;
1385+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_SWAP")]
1386+ public const int GLIBTOP_CMND_SWAP;
1387+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_SYSDEPS")]
1388+ public const int GLIBTOP_CMND_SYSDEPS;
1389+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CMND_UPTIME")]
1390+ public const int GLIBTOP_CMND_UPTIME;
1391+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_FREQUENCY")]
1392+ public const int GLIBTOP_CPU_FREQUENCY;
1393+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_IDLE")]
1394+ public const int GLIBTOP_CPU_IDLE;
1395+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_IOWAIT")]
1396+ public const int GLIBTOP_CPU_IOWAIT;
1397+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_IRQ")]
1398+ public const int GLIBTOP_CPU_IRQ;
1399+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_NICE")]
1400+ public const int GLIBTOP_CPU_NICE;
1401+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_SOFTIRQ")]
1402+ public const int GLIBTOP_CPU_SOFTIRQ;
1403+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_SYS")]
1404+ public const int GLIBTOP_CPU_SYS;
1405+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_TOTAL")]
1406+ public const int GLIBTOP_CPU_TOTAL;
1407+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_CPU_USER")]
1408+ public const int GLIBTOP_CPU_USER;
1409+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_ERROR_METHOD_ABORT")]
1410+ public const int GLIBTOP_ERROR_METHOD_ABORT;
1411+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_ERROR_METHOD_IGNORE")]
1412+ public const int GLIBTOP_ERROR_METHOD_IGNORE;
1413+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_ERROR_METHOD_WARN")]
1414+ public const int GLIBTOP_ERROR_METHOD_WARN;
1415+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_ERROR_METHOD_WARN_ONCE")]
1416+ public const int GLIBTOP_ERROR_METHOD_WARN_ONCE;
1417+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_EXCLUDE_IDLE")]
1418+ public const int GLIBTOP_EXCLUDE_IDLE;
1419+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_EXCLUDE_NOTTY")]
1420+ public const int GLIBTOP_EXCLUDE_NOTTY;
1421+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_EXCLUDE_SYSTEM")]
1422+ public const int GLIBTOP_EXCLUDE_SYSTEM;
1423+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FEATURES_EXCEPT")]
1424+ public const int GLIBTOP_FEATURES_EXCEPT;
1425+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FEATURES_NO_SERVER")]
1426+ public const int GLIBTOP_FEATURES_NO_SERVER;
1427+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FILE_ENTRY_FD")]
1428+ public const int GLIBTOP_FILE_ENTRY_FD;
1429+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FILE_ENTRY_INETSOCKET_DST_HOST")]
1430+ public const int GLIBTOP_FILE_ENTRY_INETSOCKET_DST_HOST;
1431+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FILE_ENTRY_INETSOCKET_DST_PORT")]
1432+ public const int GLIBTOP_FILE_ENTRY_INETSOCKET_DST_PORT;
1433+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FILE_ENTRY_NAME")]
1434+ public const int GLIBTOP_FILE_ENTRY_NAME;
1435+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FILE_ENTRY_TYPE")]
1436+ public const int GLIBTOP_FILE_ENTRY_TYPE;
1437+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_BAVAIL")]
1438+ public const int GLIBTOP_FSUSAGE_BAVAIL;
1439+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_BFREE")]
1440+ public const int GLIBTOP_FSUSAGE_BFREE;
1441+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_BLOCKS")]
1442+ public const int GLIBTOP_FSUSAGE_BLOCKS;
1443+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_BLOCK_SIZE")]
1444+ public const int GLIBTOP_FSUSAGE_BLOCK_SIZE;
1445+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_FFREE")]
1446+ public const int GLIBTOP_FSUSAGE_FFREE;
1447+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_FILES")]
1448+ public const int GLIBTOP_FSUSAGE_FILES;
1449+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_READ")]
1450+ public const int GLIBTOP_FSUSAGE_READ;
1451+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_FSUSAGE_WRITE")]
1452+ public const int GLIBTOP_FSUSAGE_WRITE;
1453+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_INIT_NO_INIT")]
1454+ public const int GLIBTOP_INIT_NO_INIT;
1455+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_INIT_NO_OPEN")]
1456+ public const int GLIBTOP_INIT_NO_OPEN;
1457+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGMAP")]
1458+ public const int GLIBTOP_IPC_MSGMAP;
1459+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGMAX")]
1460+ public const int GLIBTOP_IPC_MSGMAX;
1461+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGMNB")]
1462+ public const int GLIBTOP_IPC_MSGMNB;
1463+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGMNI")]
1464+ public const int GLIBTOP_IPC_MSGMNI;
1465+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGPOOL")]
1466+ public const int GLIBTOP_IPC_MSGPOOL;
1467+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGSSZ")]
1468+ public const int GLIBTOP_IPC_MSGSSZ;
1469+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_MSGTQL")]
1470+ public const int GLIBTOP_IPC_MSGTQL;
1471+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMAEM")]
1472+ public const int GLIBTOP_IPC_SEMAEM;
1473+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMMAP")]
1474+ public const int GLIBTOP_IPC_SEMMAP;
1475+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMMNI")]
1476+ public const int GLIBTOP_IPC_SEMMNI;
1477+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMMNS")]
1478+ public const int GLIBTOP_IPC_SEMMNS;
1479+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMMNU")]
1480+ public const int GLIBTOP_IPC_SEMMNU;
1481+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMMSL")]
1482+ public const int GLIBTOP_IPC_SEMMSL;
1483+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMOPM")]
1484+ public const int GLIBTOP_IPC_SEMOPM;
1485+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMUME")]
1486+ public const int GLIBTOP_IPC_SEMUME;
1487+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMUSZ")]
1488+ public const int GLIBTOP_IPC_SEMUSZ;
1489+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SEMVMX")]
1490+ public const int GLIBTOP_IPC_SEMVMX;
1491+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SHMALL")]
1492+ public const int GLIBTOP_IPC_SHMALL;
1493+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SHMMAX")]
1494+ public const int GLIBTOP_IPC_SHMMAX;
1495+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SHMMIN")]
1496+ public const int GLIBTOP_IPC_SHMMIN;
1497+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SHMMNI")]
1498+ public const int GLIBTOP_IPC_SHMMNI;
1499+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_IPC_SHMSEG")]
1500+ public const int GLIBTOP_IPC_SHMSEG;
1501+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_ALL")]
1502+ public const int GLIBTOP_KERN_PROC_ALL;
1503+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_MASK")]
1504+ public const int GLIBTOP_KERN_PROC_MASK;
1505+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_PGRP")]
1506+ public const int GLIBTOP_KERN_PROC_PGRP;
1507+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_PID")]
1508+ public const int GLIBTOP_KERN_PROC_PID;
1509+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_RUID")]
1510+ public const int GLIBTOP_KERN_PROC_RUID;
1511+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_SESSION")]
1512+ public const int GLIBTOP_KERN_PROC_SESSION;
1513+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_TTY")]
1514+ public const int GLIBTOP_KERN_PROC_TTY;
1515+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_KERN_PROC_UID")]
1516+ public const int GLIBTOP_KERN_PROC_UID;
1517+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_LOADAVG_LAST_PID")]
1518+ public const int GLIBTOP_LOADAVG_LAST_PID;
1519+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_LOADAVG_LOADAVG")]
1520+ public const int GLIBTOP_LOADAVG_LOADAVG;
1521+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_LOADAVG_NR_RUNNING")]
1522+ public const int GLIBTOP_LOADAVG_NR_RUNNING;
1523+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_LOADAVG_NR_TASKS")]
1524+ public const int GLIBTOP_LOADAVG_NR_TASKS;
1525+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_DEVICE")]
1526+ public const int GLIBTOP_MAP_ENTRY_DEVICE;
1527+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_END")]
1528+ public const int GLIBTOP_MAP_ENTRY_END;
1529+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_FILENAME")]
1530+ public const int GLIBTOP_MAP_ENTRY_FILENAME;
1531+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_INODE")]
1532+ public const int GLIBTOP_MAP_ENTRY_INODE;
1533+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_OFFSET")]
1534+ public const int GLIBTOP_MAP_ENTRY_OFFSET;
1535+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_PERM")]
1536+ public const int GLIBTOP_MAP_ENTRY_PERM;
1537+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN")]
1538+ public const int GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN;
1539+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY")]
1540+ public const int GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY;
1541+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_RSS")]
1542+ public const int GLIBTOP_MAP_ENTRY_RSS;
1543+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_SHARED_CLEAN")]
1544+ public const int GLIBTOP_MAP_ENTRY_SHARED_CLEAN;
1545+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_SHARED_DIRTY")]
1546+ public const int GLIBTOP_MAP_ENTRY_SHARED_DIRTY;
1547+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_SIZE")]
1548+ public const int GLIBTOP_MAP_ENTRY_SIZE;
1549+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_ENTRY_START")]
1550+ public const int GLIBTOP_MAP_ENTRY_START;
1551+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_FILENAME_LEN")]
1552+ public const int GLIBTOP_MAP_FILENAME_LEN;
1553+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_PERM_EXECUTE")]
1554+ public const int GLIBTOP_MAP_PERM_EXECUTE;
1555+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_PERM_PRIVATE")]
1556+ public const int GLIBTOP_MAP_PERM_PRIVATE;
1557+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_PERM_READ")]
1558+ public const int GLIBTOP_MAP_PERM_READ;
1559+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_PERM_SHARED")]
1560+ public const int GLIBTOP_MAP_PERM_SHARED;
1561+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAP_PERM_WRITE")]
1562+ public const int GLIBTOP_MAP_PERM_WRITE;
1563+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_CMND")]
1564+ public const int GLIBTOP_MAX_CMND;
1565+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_CPU")]
1566+ public const int GLIBTOP_MAX_CPU;
1567+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_FSUSAGE")]
1568+ public const int GLIBTOP_MAX_FSUSAGE;
1569+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_GROUPS")]
1570+ public const int GLIBTOP_MAX_GROUPS;
1571+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_LOADAVG")]
1572+ public const int GLIBTOP_MAX_LOADAVG;
1573+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_MAP_ENTRY")]
1574+ public const int GLIBTOP_MAX_MAP_ENTRY;
1575+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_MEM")]
1576+ public const int GLIBTOP_MAX_MEM;
1577+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_MOUNTLIST")]
1578+ public const int GLIBTOP_MAX_MOUNTLIST;
1579+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_MSG_LIMITS")]
1580+ public const int GLIBTOP_MAX_MSG_LIMITS;
1581+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_NETLIST")]
1582+ public const int GLIBTOP_MAX_NETLIST;
1583+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_NETLOAD")]
1584+ public const int GLIBTOP_MAX_NETLOAD;
1585+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_OPEN_FILE_ENTRY")]
1586+ public const int GLIBTOP_MAX_OPEN_FILE_ENTRY;
1587+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PPP")]
1588+ public const int GLIBTOP_MAX_PPP;
1589+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROCLIST")]
1590+ public const int GLIBTOP_MAX_PROCLIST;
1591+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_ARGS")]
1592+ public const int GLIBTOP_MAX_PROC_ARGS;
1593+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_KERNEL")]
1594+ public const int GLIBTOP_MAX_PROC_KERNEL;
1595+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_MAP")]
1596+ public const int GLIBTOP_MAX_PROC_MAP;
1597+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_MEM")]
1598+ public const int GLIBTOP_MAX_PROC_MEM;
1599+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_OPEN_FILES")]
1600+ public const int GLIBTOP_MAX_PROC_OPEN_FILES;
1601+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_SEGMENT")]
1602+ public const int GLIBTOP_MAX_PROC_SEGMENT;
1603+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_SIGNAL")]
1604+ public const int GLIBTOP_MAX_PROC_SIGNAL;
1605+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_STATE")]
1606+ public const int GLIBTOP_MAX_PROC_STATE;
1607+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_TIME")]
1608+ public const int GLIBTOP_MAX_PROC_TIME;
1609+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_PROC_UID")]
1610+ public const int GLIBTOP_MAX_PROC_UID;
1611+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_SEM_LIMITS")]
1612+ public const int GLIBTOP_MAX_SEM_LIMITS;
1613+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_SHM_LIMITS")]
1614+ public const int GLIBTOP_MAX_SHM_LIMITS;
1615+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_SWAP")]
1616+ public const int GLIBTOP_MAX_SWAP;
1617+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_SYSDEPS")]
1618+ public const int GLIBTOP_MAX_SYSDEPS;
1619+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_SYSINFO")]
1620+ public const int GLIBTOP_MAX_SYSINFO;
1621+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MAX_UPTIME")]
1622+ public const int GLIBTOP_MAX_UPTIME;
1623+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_BUFFER")]
1624+ public const int GLIBTOP_MEM_BUFFER;
1625+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_CACHED")]
1626+ public const int GLIBTOP_MEM_CACHED;
1627+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_FREE")]
1628+ public const int GLIBTOP_MEM_FREE;
1629+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_LOCKED")]
1630+ public const int GLIBTOP_MEM_LOCKED;
1631+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_SHARED")]
1632+ public const int GLIBTOP_MEM_SHARED;
1633+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_TOTAL")]
1634+ public const int GLIBTOP_MEM_TOTAL;
1635+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_USED")]
1636+ public const int GLIBTOP_MEM_USED;
1637+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MEM_USER")]
1638+ public const int GLIBTOP_MEM_USER;
1639+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_METHOD_DIRECT")]
1640+ public const int GLIBTOP_METHOD_DIRECT;
1641+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_METHOD_INET")]
1642+ public const int GLIBTOP_METHOD_INET;
1643+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_METHOD_PIPE")]
1644+ public const int GLIBTOP_METHOD_PIPE;
1645+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_METHOD_UNIX")]
1646+ public const int GLIBTOP_METHOD_UNIX;
1647+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MOUNTENTRY_LEN")]
1648+ public const int GLIBTOP_MOUNTENTRY_LEN;
1649+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MOUNTLIST_NUMBER")]
1650+ public const int GLIBTOP_MOUNTLIST_NUMBER;
1651+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MOUNTLIST_SIZE")]
1652+ public const int GLIBTOP_MOUNTLIST_SIZE;
1653+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_MOUNTLIST_TOTAL")]
1654+ public const int GLIBTOP_MOUNTLIST_TOTAL;
1655+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NCPU")]
1656+ public const int GLIBTOP_NCPU;
1657+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLIST_NUMBER")]
1658+ public const int GLIBTOP_NETLIST_NUMBER;
1659+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_ADDRESS")]
1660+ public const int GLIBTOP_NETLOAD_ADDRESS;
1661+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_ADDRESS6")]
1662+ public const int GLIBTOP_NETLOAD_ADDRESS6;
1663+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_BYTES_IN")]
1664+ public const int GLIBTOP_NETLOAD_BYTES_IN;
1665+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_BYTES_OUT")]
1666+ public const int GLIBTOP_NETLOAD_BYTES_OUT;
1667+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_BYTES_TOTAL")]
1668+ public const int GLIBTOP_NETLOAD_BYTES_TOTAL;
1669+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_COLLISIONS")]
1670+ public const int GLIBTOP_NETLOAD_COLLISIONS;
1671+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_ERRORS_IN")]
1672+ public const int GLIBTOP_NETLOAD_ERRORS_IN;
1673+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_ERRORS_OUT")]
1674+ public const int GLIBTOP_NETLOAD_ERRORS_OUT;
1675+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_ERRORS_TOTAL")]
1676+ public const int GLIBTOP_NETLOAD_ERRORS_TOTAL;
1677+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_HWADDRESS")]
1678+ public const int GLIBTOP_NETLOAD_HWADDRESS;
1679+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_IF_FLAGS")]
1680+ public const int GLIBTOP_NETLOAD_IF_FLAGS;
1681+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_MTU")]
1682+ public const int GLIBTOP_NETLOAD_MTU;
1683+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_PACKETS_IN")]
1684+ public const int GLIBTOP_NETLOAD_PACKETS_IN;
1685+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_PACKETS_OUT")]
1686+ public const int GLIBTOP_NETLOAD_PACKETS_OUT;
1687+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_PACKETS_TOTAL")]
1688+ public const int GLIBTOP_NETLOAD_PACKETS_TOTAL;
1689+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_PREFIX6")]
1690+ public const int GLIBTOP_NETLOAD_PREFIX6;
1691+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_SCOPE6")]
1692+ public const int GLIBTOP_NETLOAD_SCOPE6;
1693+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_NETLOAD_SUBNET")]
1694+ public const int GLIBTOP_NETLOAD_SUBNET;
1695+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_OPEN_DEST_HOST_LEN")]
1696+ public const int GLIBTOP_OPEN_DEST_HOST_LEN;
1697+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_OPEN_FILENAME_LEN")]
1698+ public const int GLIBTOP_OPEN_FILENAME_LEN;
1699+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_COMMAND")]
1700+ public const int GLIBTOP_PARAM_COMMAND;
1701+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_ERROR_METHOD")]
1702+ public const int GLIBTOP_PARAM_ERROR_METHOD;
1703+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_FEATURES")]
1704+ public const int GLIBTOP_PARAM_FEATURES;
1705+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_HOST")]
1706+ public const int GLIBTOP_PARAM_HOST;
1707+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_METHOD")]
1708+ public const int GLIBTOP_PARAM_METHOD;
1709+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_PORT")]
1710+ public const int GLIBTOP_PARAM_PORT;
1711+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PARAM_REQUIRED")]
1712+ public const int GLIBTOP_PARAM_REQUIRED;
1713+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PPP_BYTES_IN")]
1714+ public const int GLIBTOP_PPP_BYTES_IN;
1715+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PPP_BYTES_OUT")]
1716+ public const int GLIBTOP_PPP_BYTES_OUT;
1717+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PPP_STATE")]
1718+ public const int GLIBTOP_PPP_STATE;
1719+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_DEAD")]
1720+ public const int GLIBTOP_PROCESS_DEAD;
1721+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_INTERRUPTIBLE")]
1722+ public const int GLIBTOP_PROCESS_INTERRUPTIBLE;
1723+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_RUNNING")]
1724+ public const int GLIBTOP_PROCESS_RUNNING;
1725+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_STOPPED")]
1726+ public const int GLIBTOP_PROCESS_STOPPED;
1727+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_SWAPPING")]
1728+ public const int GLIBTOP_PROCESS_SWAPPING;
1729+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_UNINTERRUPTIBLE")]
1730+ public const int GLIBTOP_PROCESS_UNINTERRUPTIBLE;
1731+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCESS_ZOMBIE")]
1732+ public const int GLIBTOP_PROCESS_ZOMBIE;
1733+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCLIST_NUMBER")]
1734+ public const int GLIBTOP_PROCLIST_NUMBER;
1735+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCLIST_SIZE")]
1736+ public const int GLIBTOP_PROCLIST_SIZE;
1737+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROCLIST_TOTAL")]
1738+ public const int GLIBTOP_PROCLIST_TOTAL;
1739+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_AFFINITY_ALL")]
1740+ public const int GLIBTOP_PROC_AFFINITY_ALL;
1741+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_AFFINITY_NUMBER")]
1742+ public const int GLIBTOP_PROC_AFFINITY_NUMBER;
1743+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_ARGS_SIZE")]
1744+ public const int GLIBTOP_PROC_ARGS_SIZE;
1745+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_CMAJ_FLT")]
1746+ public const int GLIBTOP_PROC_KERNEL_CMAJ_FLT;
1747+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_CMIN_FLT")]
1748+ public const int GLIBTOP_PROC_KERNEL_CMIN_FLT;
1749+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_KSTK_EIP")]
1750+ public const int GLIBTOP_PROC_KERNEL_KSTK_EIP;
1751+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_KSTK_ESP")]
1752+ public const int GLIBTOP_PROC_KERNEL_KSTK_ESP;
1753+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_K_FLAGS")]
1754+ public const int GLIBTOP_PROC_KERNEL_K_FLAGS;
1755+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_MAJ_FLT")]
1756+ public const int GLIBTOP_PROC_KERNEL_MAJ_FLT;
1757+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_MIN_FLT")]
1758+ public const int GLIBTOP_PROC_KERNEL_MIN_FLT;
1759+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_NWCHAN")]
1760+ public const int GLIBTOP_PROC_KERNEL_NWCHAN;
1761+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_KERNEL_WCHAN")]
1762+ public const int GLIBTOP_PROC_KERNEL_WCHAN;
1763+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MAP_NUMBER")]
1764+ public const int GLIBTOP_PROC_MAP_NUMBER;
1765+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MAP_SIZE")]
1766+ public const int GLIBTOP_PROC_MAP_SIZE;
1767+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MAP_TOTAL")]
1768+ public const int GLIBTOP_PROC_MAP_TOTAL;
1769+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_RESIDENT")]
1770+ public const int GLIBTOP_PROC_MEM_RESIDENT;
1771+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_RSS")]
1772+ public const int GLIBTOP_PROC_MEM_RSS;
1773+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_RSS_RLIM")]
1774+ public const int GLIBTOP_PROC_MEM_RSS_RLIM;
1775+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_SHARE")]
1776+ public const int GLIBTOP_PROC_MEM_SHARE;
1777+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_SIZE")]
1778+ public const int GLIBTOP_PROC_MEM_SIZE;
1779+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_MEM_VSIZE")]
1780+ public const int GLIBTOP_PROC_MEM_VSIZE;
1781+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_OPEN_FILES_NUMBER")]
1782+ public const int GLIBTOP_PROC_OPEN_FILES_NUMBER;
1783+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_OPEN_FILES_SIZE")]
1784+ public const int GLIBTOP_PROC_OPEN_FILES_SIZE;
1785+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_OPEN_FILES_TOTAL")]
1786+ public const int GLIBTOP_PROC_OPEN_FILES_TOTAL;
1787+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_DATA_RSS")]
1788+ public const int GLIBTOP_PROC_SEGMENT_DATA_RSS;
1789+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_DIRTY_SIZE")]
1790+ public const int GLIBTOP_PROC_SEGMENT_DIRTY_SIZE;
1791+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_END_CODE")]
1792+ public const int GLIBTOP_PROC_SEGMENT_END_CODE;
1793+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_SHLIB_RSS")]
1794+ public const int GLIBTOP_PROC_SEGMENT_SHLIB_RSS;
1795+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_STACK_RSS")]
1796+ public const int GLIBTOP_PROC_SEGMENT_STACK_RSS;
1797+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_START_CODE")]
1798+ public const int GLIBTOP_PROC_SEGMENT_START_CODE;
1799+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_START_STACK")]
1800+ public const int GLIBTOP_PROC_SEGMENT_START_STACK;
1801+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SEGMENT_TEXT_RSS")]
1802+ public const int GLIBTOP_PROC_SEGMENT_TEXT_RSS;
1803+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SIGNAL_BLOCKED")]
1804+ public const int GLIBTOP_PROC_SIGNAL_BLOCKED;
1805+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SIGNAL_SIGCATCH")]
1806+ public const int GLIBTOP_PROC_SIGNAL_SIGCATCH;
1807+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SIGNAL_SIGIGNORE")]
1808+ public const int GLIBTOP_PROC_SIGNAL_SIGIGNORE;
1809+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_SIGNAL_SIGNAL")]
1810+ public const int GLIBTOP_PROC_SIGNAL_SIGNAL;
1811+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_CMD")]
1812+ public const int GLIBTOP_PROC_STATE_CMD;
1813+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_GID")]
1814+ public const int GLIBTOP_PROC_STATE_GID;
1815+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_HAS_CPU")]
1816+ public const int GLIBTOP_PROC_STATE_HAS_CPU;
1817+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_LAST_PROCESSOR")]
1818+ public const int GLIBTOP_PROC_STATE_LAST_PROCESSOR;
1819+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_PROCESSOR")]
1820+ public const int GLIBTOP_PROC_STATE_PROCESSOR;
1821+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_RGID")]
1822+ public const int GLIBTOP_PROC_STATE_RGID;
1823+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_RUID")]
1824+ public const int GLIBTOP_PROC_STATE_RUID;
1825+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_STATE")]
1826+ public const int GLIBTOP_PROC_STATE_STATE;
1827+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_STATE_UID")]
1828+ public const int GLIBTOP_PROC_STATE_UID;
1829+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_CSTIME")]
1830+ public const int GLIBTOP_PROC_TIME_CSTIME;
1831+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_CUTIME")]
1832+ public const int GLIBTOP_PROC_TIME_CUTIME;
1833+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_FREQUENCY")]
1834+ public const int GLIBTOP_PROC_TIME_FREQUENCY;
1835+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_IT_REAL_VALUE")]
1836+ public const int GLIBTOP_PROC_TIME_IT_REAL_VALUE;
1837+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_RTIME")]
1838+ public const int GLIBTOP_PROC_TIME_RTIME;
1839+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_START_TIME")]
1840+ public const int GLIBTOP_PROC_TIME_START_TIME;
1841+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_STIME")]
1842+ public const int GLIBTOP_PROC_TIME_STIME;
1843+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_TIMEOUT")]
1844+ public const int GLIBTOP_PROC_TIME_TIMEOUT;
1845+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_UTIME")]
1846+ public const int GLIBTOP_PROC_TIME_UTIME;
1847+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_XCPU_STIME")]
1848+ public const int GLIBTOP_PROC_TIME_XCPU_STIME;
1849+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_TIME_XCPU_UTIME")]
1850+ public const int GLIBTOP_PROC_TIME_XCPU_UTIME;
1851+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_EGID")]
1852+ public const int GLIBTOP_PROC_UID_EGID;
1853+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_EUID")]
1854+ public const int GLIBTOP_PROC_UID_EUID;
1855+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_FSGID")]
1856+ public const int GLIBTOP_PROC_UID_FSGID;
1857+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_FSUID")]
1858+ public const int GLIBTOP_PROC_UID_FSUID;
1859+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_GID")]
1860+ public const int GLIBTOP_PROC_UID_GID;
1861+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_GROUPS")]
1862+ public const int GLIBTOP_PROC_UID_GROUPS;
1863+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_NGROUPS")]
1864+ public const int GLIBTOP_PROC_UID_NGROUPS;
1865+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_NICE")]
1866+ public const int GLIBTOP_PROC_UID_NICE;
1867+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_PGRP")]
1868+ public const int GLIBTOP_PROC_UID_PGRP;
1869+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_PID")]
1870+ public const int GLIBTOP_PROC_UID_PID;
1871+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_PPID")]
1872+ public const int GLIBTOP_PROC_UID_PPID;
1873+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_PRIORITY")]
1874+ public const int GLIBTOP_PROC_UID_PRIORITY;
1875+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_SESSION")]
1876+ public const int GLIBTOP_PROC_UID_SESSION;
1877+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_SGID")]
1878+ public const int GLIBTOP_PROC_UID_SGID;
1879+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_SUID")]
1880+ public const int GLIBTOP_PROC_UID_SUID;
1881+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_TPGID")]
1882+ public const int GLIBTOP_PROC_UID_TPGID;
1883+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_TTY")]
1884+ public const int GLIBTOP_PROC_UID_TTY;
1885+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_UID_UID")]
1886+ public const int GLIBTOP_PROC_UID_UID;
1887+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_EXE")]
1888+ public const int GLIBTOP_PROC_WD_EXE;
1889+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_EXE_LEN")]
1890+ public const int GLIBTOP_PROC_WD_EXE_LEN;
1891+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_MAX")]
1892+ public const int GLIBTOP_PROC_WD_MAX;
1893+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_NUMBER")]
1894+ public const int GLIBTOP_PROC_WD_NUMBER;
1895+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_ROOT")]
1896+ public const int GLIBTOP_PROC_WD_ROOT;
1897+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_PROC_WD_ROOT_LEN")]
1898+ public const int GLIBTOP_PROC_WD_ROOT_LEN;
1899+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SWAP_FREE")]
1900+ public const int GLIBTOP_SWAP_FREE;
1901+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SWAP_PAGEIN")]
1902+ public const int GLIBTOP_SWAP_PAGEIN;
1903+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SWAP_PAGEOUT")]
1904+ public const int GLIBTOP_SWAP_PAGEOUT;
1905+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SWAP_TOTAL")]
1906+ public const int GLIBTOP_SWAP_TOTAL;
1907+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SWAP_USED")]
1908+ public const int GLIBTOP_SWAP_USED;
1909+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_ALL")]
1910+ public const int GLIBTOP_SYSDEPS_ALL;
1911+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_CPU")]
1912+ public const int GLIBTOP_SYSDEPS_CPU;
1913+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_FEATURES")]
1914+ public const int GLIBTOP_SYSDEPS_FEATURES;
1915+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_FSUSAGE")]
1916+ public const int GLIBTOP_SYSDEPS_FSUSAGE;
1917+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_LOADAVG")]
1918+ public const int GLIBTOP_SYSDEPS_LOADAVG;
1919+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_MEM")]
1920+ public const int GLIBTOP_SYSDEPS_MEM;
1921+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_MOUNTLIST")]
1922+ public const int GLIBTOP_SYSDEPS_MOUNTLIST;
1923+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_MSG_LIMITS")]
1924+ public const int GLIBTOP_SYSDEPS_MSG_LIMITS;
1925+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_NETLIST")]
1926+ public const int GLIBTOP_SYSDEPS_NETLIST;
1927+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_NETLOAD")]
1928+ public const int GLIBTOP_SYSDEPS_NETLOAD;
1929+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PPP")]
1930+ public const int GLIBTOP_SYSDEPS_PPP;
1931+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROCLIST")]
1932+ public const int GLIBTOP_SYSDEPS_PROCLIST;
1933+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_AFFINITY")]
1934+ public const int GLIBTOP_SYSDEPS_PROC_AFFINITY;
1935+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_ARGS")]
1936+ public const int GLIBTOP_SYSDEPS_PROC_ARGS;
1937+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_KERNEL")]
1938+ public const int GLIBTOP_SYSDEPS_PROC_KERNEL;
1939+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_MAP")]
1940+ public const int GLIBTOP_SYSDEPS_PROC_MAP;
1941+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_MEM")]
1942+ public const int GLIBTOP_SYSDEPS_PROC_MEM;
1943+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_OPEN_FILES")]
1944+ public const int GLIBTOP_SYSDEPS_PROC_OPEN_FILES;
1945+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_SEGMENT")]
1946+ public const int GLIBTOP_SYSDEPS_PROC_SEGMENT;
1947+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_SIGNAL")]
1948+ public const int GLIBTOP_SYSDEPS_PROC_SIGNAL;
1949+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_STATE")]
1950+ public const int GLIBTOP_SYSDEPS_PROC_STATE;
1951+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_TIME")]
1952+ public const int GLIBTOP_SYSDEPS_PROC_TIME;
1953+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_UID")]
1954+ public const int GLIBTOP_SYSDEPS_PROC_UID;
1955+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_PROC_WD")]
1956+ public const int GLIBTOP_SYSDEPS_PROC_WD;
1957+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_SEM_LIMITS")]
1958+ public const int GLIBTOP_SYSDEPS_SEM_LIMITS;
1959+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_SHM_LIMITS")]
1960+ public const int GLIBTOP_SYSDEPS_SHM_LIMITS;
1961+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_SWAP")]
1962+ public const int GLIBTOP_SYSDEPS_SWAP;
1963+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSDEPS_UPTIME")]
1964+ public const int GLIBTOP_SYSDEPS_UPTIME;
1965+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSINFO_CPUINFO")]
1966+ public const int GLIBTOP_SYSINFO_CPUINFO;
1967+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_SYSINFO_NCPU")]
1968+ public const int GLIBTOP_SYSINFO_NCPU;
1969+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_UPTIME_BOOT_TIME")]
1970+ public const int GLIBTOP_UPTIME_BOOT_TIME;
1971+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_UPTIME_IDLETIME")]
1972+ public const int GLIBTOP_UPTIME_IDLETIME;
1973+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_UPTIME_UPTIME")]
1974+ public const int GLIBTOP_UPTIME_UPTIME;
1975+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_FLAGS")]
1976+ public const int GLIBTOP_XCPU_FLAGS;
1977+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_IDLE")]
1978+ public const int GLIBTOP_XCPU_IDLE;
1979+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_IOWAIT")]
1980+ public const int GLIBTOP_XCPU_IOWAIT;
1981+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_IRQ")]
1982+ public const int GLIBTOP_XCPU_IRQ;
1983+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_NICE")]
1984+ public const int GLIBTOP_XCPU_NICE;
1985+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_SOFTIRQ")]
1986+ public const int GLIBTOP_XCPU_SOFTIRQ;
1987+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_SYS")]
1988+ public const int GLIBTOP_XCPU_SYS;
1989+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_TOTAL")]
1990+ public const int GLIBTOP_XCPU_TOTAL;
1991+ [CCode (cheader_filename = "glibtop.h", cname = "GLIBTOP_XCPU_USER")]
1992+ public const int GLIBTOP_XCPU_USER;
1993+ [CCode (cheader_filename = "glibtop.h", cname = "HOSTNAMSZ")]
1994+ public const int HOSTNAMSZ;
1995+ [CCode (cheader_filename = "glibtop.h", cname = "LIBGTOP_VERSION_STRING")]
1996+ public const string LIBGTOP_VERSION_STRING;
1997+ [CCode (cheader_filename = "glibtop.h", cname = "MCOOKIE_NAME")]
1998+ public const string MCOOKIE_NAME;
1999+ [CCode (cheader_filename = "glibtop.h", cname = "MCOOKIE_SCREEN")]
2000+ public const string MCOOKIE_SCREEN;
2001+ [CCode (cheader_filename = "glibtop.h", cname = "MCOOKIE_X_NAME")]
2002+ public const string MCOOKIE_X_NAME;
2003+ [CCode (cheader_filename = "glibtop.h", cname = "PATCHLEVEL")]
2004+ public const int PATCHLEVEL;
2005+ [CCode (cheader_filename = "glibtop.h", cname = "REPLYSIZ")]
2006+ public const int REPLYSIZ;
2007+ [CCode (cheader_filename = "glibtop.h", cname = "TABLE_SIZE")]
2008+ public const int TABLE_SIZE;
2009+ [CCode (cheader_filename = "glibtop.h", cname = "TRUE")]
2010+ public const int TRUE;
2011+
2012+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_close")]
2013+ public static void close ();
2014+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_cpu")]
2015+ public static void get_cpu (out GTop.Cpu buf);
2016+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_fsusage")]
2017+ public static void get_fsusage (out GTop.FsUsage buf, string mount_dir);
2018+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_loadavg")]
2019+ public static void get_loadavg (out GTop.LoadAvg buf);
2020+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_mem")]
2021+ public static void get_mem (out GTop.Memory buf);
2022+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_msg_limits")]
2023+ public static void get_msg_limits (out GTop.MsgLimits buf);
2024+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_netload")]
2025+ public static void get_netload (out GTop.NetLoad buf, string @interface);
2026+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_ppp")]
2027+ public static void get_ppp (out GTop.Ppp buf, ushort device);
2028+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_affinity")]
2029+ public static uint16 get_proc_affinity (out GTop.ProcAffinity buf, int pid);
2030+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_args")]
2031+ public static string get_proc_args (out GTop.ProcArgs buf, int pid, uint max_len);
2032+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_kernel")]
2033+ public static void get_proc_kernel (out GTop.ProcKernel buf, int pid);
2034+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_mem")]
2035+ public static void get_proc_mem (out GTop.ProcMem buf, int pid);
2036+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_segment")]
2037+ public static void get_proc_segment (out GTop.ProcSegment buf, int pid);
2038+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_signal")]
2039+ public static void get_proc_signal (out GTop.ProcSignal buf, int pid);
2040+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_state")]
2041+ public static void get_proc_state (out GTop.ProcState buf, int pid);
2042+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_time")]
2043+ public static void get_proc_time (out GTop.ProcTime buf, int pid);
2044+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proc_uid")]
2045+ public static void get_proc_uid (out GTop.ProcUid buf, int pid);
2046+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_proclist", array_length = false, array_null_terminated = false)]
2047+ public static int[] get_proclist (out GTop.ProcList buf, int64 which, int64 arg);
2048+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_sem_limits")]
2049+ public static void get_sem_limits (out GTop.SemLimits buf);
2050+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_shm_limits")]
2051+ public static void get_shm_limits (out GTop.ShmLimits buf);
2052+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_swap")]
2053+ public static void get_swap (out GTop.Swap buf);
2054+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_sysdeps")]
2055+ public static void get_sysdeps (out GTop.SysDeps buf);
2056+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_sysinfo")]
2057+ public static unowned GTop.SysInfo? glibtop_get_sysinfo ();
2058+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_get_uptime")]
2059+ public static void get_uptime (out GTop.Uptime buf);
2060+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_internet_addr")]
2061+ public static long internet_addr (string host);
2062+ [CCode (cheader_filename = "glibtop.h", cname = "glibtop_make_connection")]
2063+ public static int make_connection (string hostarg, int portarg, int s);
2064+}
2065\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: