summaryrefslogtreecommitdiff
path: root/glibtop.h
Commit message (Collapse)AuthorAgeFilesLines
* Moved new api variables to the bottom of struct.James Dominic P. Guana2021-04-231-2/+3
|
* fix comment 2James Dominic P. Guana2021-04-231-2/+2
|
* Fix commentJames Dominic P. Guana2021-04-231-1/+1
|
* Make ndisk comment clearJames Dominic P. Guana2021-04-231-2/+2
|
* Revert "Revert "Handle LVM and RAID""James Dominic P. Guana2021-04-231-1/+1
| | | | This reverts commit 30bf8d04183c26ca48c6cd4efe4c24058a082783.
* Revert "Revert "New API to retrieve disk stats in Linux""James Dominic P. Guana2021-04-231-0/+2
| | | | This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9.
* Revert "New API to retrieve disk stats in Linux"Michael Catanzaro2020-11-061-2/+0
| | | | This reverts commit 9e62440b314fbf87bbeca865a4223311314c52a3.
* Revert "Handle LVM and RAID"Michael Catanzaro2020-11-061-1/+1
| | | | This reverts commit 9cbb3b91f11ad0c4944a1428d609201c054cffab.
* Handle LVM and RAIDJames Dominic P. Guana2020-11-041-1/+1
|
* New API to retrieve disk stats in LinuxJames Dominic P. Guana2020-11-041-0/+2
|
* Mark glibtop_init_s as non-introspectableTing-Wei Lan2019-07-241-1/+1
| | | | | | This function isn't exported so it should be skipped. https://gitlab.gnome.org/GNOME/gjs/issues/259
* Don't include non-installed glibtop_machine.h in glibtop.h.Benoît Dejean2015-08-151-2/+1
| | | | That would defeat its purpose.
* Turn glibtop::machine from a value to a pointer, allocated on init.Benoit Dejean2015-08-081-1/+1
| | | | This hides the glibtop_machine implementation.
* Add uid/euid/gid/egid members to struct glibtop.Benoit Dejean2015-08-081-0/+10
|
* Always define gligtop_machine.Benoit Dejean2015-08-081-32/+1
| | | | | | | | | | | There was an ABI mismatch because HAVE_GLIBTOP_MACHINE was only defined when compiling the library itself. The library code would then use a larger struct glibtop (with a machine member) than the application code. Everyone defines a glibtop_machine but linux (though it as a glibtop_machine.h) and cygwin (code unchanged for 5 years) so this should not break anything.
* Add gtk-doc annotations for the glibtop_init functions.Benoît Dejean2015-07-101-0/+23
| | | | | Their return value should not be freed. This fixes usage from gnome-instrospection (invalid free).
* Make some APIs that return struct introspectableJasper St. Pierre2015-01-031-0/+3
| | | | | | | In order to do this, we need to define some boxed types. So we need to add a new dependency, GObject, to GTop. https://bugzilla.gnome.org/show_bug.cgi?id=663265
* Update old FSF address.Robert Roth2014-08-201-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* Single glib.h include.Benoît Dejean2008-11-071-1/+1
| | | | | | Closes #557826. svn path=/trunk/; revision=2785
* Removed noisy $Id$.Benoît Dejean2007-02-191-2/+0
| | | | | | | | | | 2007-02-20 Benoît Dejean <benoit@placenet.org> * *: Removed noisy $Id$. svn path=/trunk/; revision=2558
* Made gtk-doc happy in order to dist.LIBGTOP_2_14_5Benoît Dejean2006-12-031-2/+30
| | | | | | | | | | 2006-12-03 Benoît Dejean <benoit@placenet.org> * doc/reference/libgtop-docs.xml: * glibtop.h: * include/glibtop/sysinfo.h: Made gtk-doc happy in order to dist.
* Bumped version number.Benoît Dejean2006-08-101-0/+6
| | | | | | | | | | | | | 2006-08-10 Benoît Dejean <benoit@placenet.org> * configure.in: Bumped version number. * glibtop.h: * include/glibtop/init_hooks.h: Added missing G_(BEGIN|END)_DECLS.
* Increased GLIBTOP_NCPU to 32. Added real_ncpu to struct glibtop. AddedBenoît Dejean2005-12-091-0/+1
| | | | | | | | | | | | | | * configure.in: * glibtop.h: * include/glibtop/cpu.h: * include/glibtop/procmap.h: Increased GLIBTOP_NCPU to 32. Added real_ncpu to struct glibtop. Added smaps members to glibtop_map_entry. Bumped version number to 2.13.0 Broke ABI again. Sorry.
* Added a lot of new functions to replace dirty macros. Every macroBenoît Dejean2005-06-071-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: * glibtop.h: * include/glibtop/close.h: * include/glibtop/cpu.h: * include/glibtop/fsusage.h: * include/glibtop/loadavg.h: * include/glibtop/mem.h: * include/glibtop/mountlist.h: * include/glibtop/msg_limits.h: * include/glibtop/netlist.h: * include/glibtop/netload.h: * include/glibtop/ppp.h: * include/glibtop/procargs.h: * include/glibtop/prockernel.h: * include/glibtop/proclist.h: * include/glibtop/procmap.h: * include/glibtop/procmem.h: * include/glibtop/procopenfiles.h: * include/glibtop/procsegment.h: * include/glibtop/procsignal.h: * include/glibtop/procstate.h: * include/glibtop/proctime.h: * include/glibtop/procuid.h: * include/glibtop/sem_limits.h: * include/glibtop/shm_limits.h: * include/glibtop/swap.h: * include/glibtop/sysdeps.h: * include/glibtop/sysinfo.h: * include/glibtop/uptime.h: * sysdeps/common/Makefile.am: * sysdeps/common/default.c: (glibtop_close), (glibtop_init), (glibtop_get_cpu), (glibtop_get_fsusage), (glibtop_get_uptime), (glibtop_get_sysinfo), (glibtop_get_swap), (glibtop_get_proc_uid), (glibtop_get_proc_time), (glibtop_get_proc_state), (glibtop_get_proc_signal), (glibtop_get_proc_segment), (glibtop_get_proc_open_files), (glibtop_get_proc_mem), (glibtop_get_proc_map), (glibtop_get_proc_args), (glibtop_get_proc_argv), (glibtop_get_proclist), (glibtop_get_proc_kernel), (glibtop_get_ppp), (glibtop_get_netlist), (glibtop_get_netload), (glibtop_get_mountlist), (glibtop_get_mem), (glibtop_get_loadavg), (glibtop_get_msg_limits), (glibtop_get_sem_limits), (glibtop_get_shm_limits), (glibtop_get_sysdeps): Added a lot of new functions to replace dirty macros. Every macro glibtop_get_*(buf[, args]) has been turned to a function.
* Removed some dead files. Don't install private headers.Benoît Dejean2005-02-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backends/server/server.h: * configure.in: * glibtop.h: * include/glibtop/Makefile.am: * include/glibtop/gnuserv.h: * include/glibtop/open.h: * include/glibtop/read.h: * include/glibtop/read_data.h: * include/glibtop/types.h: * include/glibtop/write.h: * lib/close.c: * lib/init.c: * lib/lib.pl: * lib/open.c: * lib/parameter.c: * lib/read.c: * lib/read_data.c: * lib/write.c: * src/daemon/daemon.h: * src/daemon/io.c: * src/daemon/main.c: (handle_parent_connection): * src/daemon/slave.c: (handle_slave_connection), (handle_slave_command): * sysdeps/common/gnuslib.c: * sysdeps/solaris/glibtop_private.h: Removed some dead files. Don't install private headers.
* Removed unused files.Benoît Dejean2004-11-181-0/+21
| | | | | | | | | | | * LIBGTOP-VERSION: * libgtop-mirror.sh: Removed unused files. * libgtopconfig.h.in: Added. * Makefile.am: * configure.in: * glibtop.h: Added libgtopconfig.h and LIBGTOP_VERSION_CHECK(X, Y, Z). This can be used in build tests.
* Added missing include <glibtop/close.h>.Benoît Dejean2004-09-251-0/+1
| | | | * glibtop.h: Added missing include <glibtop/close.h>.
* Moved foward declaration of glibtop to break circular #includesBenoît Dejean2004-07-031-1/+4
| | | | | * glibtop.h: Moved foward declaration of glibtop to break circular #includes dependencies.
* - fixed compilationBastien Nocera2003-10-201-20/+0
|
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-15/+62
| | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
* Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.Martin Baulig2001-04-201-2/+2
| | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/*.h: Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.
* Removed this typedef. (glibtop_server): Made the `_priv' field a `void *'.Martin Baulig2001-04-201-5/+1
| | | | | | | | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/glibtop-server.h (glibtop_server_private): Removed this typedef. (glibtop_server): Made the `_priv' field a `void *'. * glibtop-server-private.h: Moved to lib/. * lib/glibtop-server-private.h (glibtop_server_private): Moved this typedef here.
* Started with the big rewrite for GNOME 2.0:Martin Baulig2000-11-201-43/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-20 Martin Baulig <baulig@suse.de> Started with the big rewrite for GNOME 2.0: - split the `glibtop' structure into `glibtop_server' and `glibtop_client' and make `glibtop_client' a GObject. - cleanly separate the library and the backends. This stuff currently does not compile. * glibtop.h (glibtop_server_private, glibtop_server_info): Removed typedefs. (struct _glibtop, struct _glibtop_server_info): Removed. (glibtop_global_server, glibtop_server_features): Removed. (glibtop_server_ref, glibtop_server_unref): Removed. * glibtop.h (glibtop_init_s): First argument is now a `glibtop_server *'. * include/glibtop/*.h: Removed all #defines with the glibtop_global_server. (glibtop_get_*_l): First argument is now a `glibtop_client *'. (glibtop_get_*_s, glibtop_init_*_s): First argument is now a `glibtop_server *'. * lib/glibtop-client.c: New file. * sysdeps/common/xmalloc.c: Moved to lib/. * sysdeps/common/error.c: Moved to lib/. * lib/xmalloc.c: Moved here from sysdeps/common/. * lib/error.c: Moved here from sysdeps/common/. * include/glibtop/backend.h (glibtop_backend_open_func_t, glibtop_backend_close_func_t): First argument is now a `glibtop_server *'. (glibtop_backend_info): Added `glibtop_server *server'. (glibtop_open_backend_l): Returns `glibtop_backend *', first argument is `glibtop_client *' and added `GError **'. * include/glibtop/close.h (glibtop_close_s, glibtop_close_p): First argument is now a `glibtop_server *'. * include/glibtop/error.h (*): First argument is now a `glibtop_server *'. * include/glibtop/errors.h: Switched this to use GError.
* New type. (glibtop): Added `glibtop_server_info *info', moved `ncpu',Martin Baulig2000-11-201-5/+11
| | | | | | | | | 2000-11-20 Martin Baulig <baulig@suse.de> * glibtop.h (glibtop_server_info): New type. (glibtop): Added `glibtop_server_info *info', moved `ncpu', `features', `sysdeps', `required' and `wanted' info glibtop_server_info.
* Removed `method', `server_command', `server_host', `server_user' andMartin Baulig2000-02-061-6/+3
| | | | | | | | | | | | | | | 2000-02-06 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Removed `method', `server_command', `server_host', `server_user' and `server_rsh'. Added `glibtop_parameter _param' field and moved `error_method' there. * include/glibtop/parameter.h (glibtop_parameter): New structure. (GLIBTOP_PARAM_METHOD, GLIBTOP_PARAM_COMMAND): Removed. (GLIBTOP_PARAM_HOST, GLIBTOP_PARAM_PORT): Removed. (GLIBTOP_PARAM_REMOTE_USER, GLIBTOP_PARAM_PATH_RSH): Removed. (GLIBTOP_PARAM_NCPU, GLIBTOP_PARAM_OS_VERSION_CODE): Added.
* The indentation in LibGTop was done with the following command:Martin Baulig1999-12-261-18/+20
| | | | | | | | find . -name \*.[ch] | xargs -i emacs -batch {} \ -l /gnome/compile/libgtop/misc/format.el -f save-buffer December 26, 1999 Martin
* Use of `errno' as struct field yields some trouble; better useMartin Baulig1999-12-221-1/+1
| | | | `glibtop_errno' instead.
* Added `errno' field.Martin Baulig1999-12-221-0/+1
| | | | | | | | | | 1999-12-22 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Added `errno' field. * include/glibtop/errors.h (GLIBTOP_ERROR_SERVER_COMM_FAILURE): New error constant. (GLIBTOP_ERROR_NO_SUCH_PROCESS): New error constant.
* New file. This is a private header file which defines `structMartin Baulig1999-12-191-30/+9
| | | | | | | | | | 1999-12-19 Martin Baulig <martin@home-of-linux.org> * glibtop-server-private.h: New file. This is a private header file which defines `struct _glibtop_server_private'. * glibtop.h (glibtop): Added `glibtop_server_private *_priv' field and moved some private fields there.
* New file. We define `GLIBTOP_ERROR_*' error constants here.Martin Baulig1999-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | 1999-12-19 Martin Baulig <martin@home-of-linux.org> * include/glibtop/errors.h: New file. We define `GLIBTOP_ERROR_*' error constants here. * lib/errors.c: New file. (glibtop_error_strings): Array of error messages. (glibtop_get_error_string_l): Get error message. * include/glibtop/parameter.h: Added `GLIBTOP_PARAM_REMOTE_USER' and `GLIBTOP_PARAM_PATH_RSH'. * lib/parameter.c (glibtop_get_parameter_l): Changed return value from `size_t' to `ssize_t' and let it return an error constant. (glibtop_get_parameter_size_l): New function. (glibtop_set_parameter_l): Changed return value from `void' to `int' and let it return an error constant on error. * structures.def (glibtop_sysdeps): Added.
* Added `refcount' field. New functions to deal with refcounts.Martin Baulig1999-12-051-0/+7
| | | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Added `refcount' field. * lib/init.c (glibtop_server_ref, glibtop_server_unref): New functions to deal with refcounts.
* Move this here.Martin Baulig1999-05-281-4/+0
| | | | | | | 1999-05-28 Martin Baulig <martin@home-of-linux.org> * glibtop.h (GLIBTOP_MOUNTENTRY_LEN): Move this * include/glibtop/limits.h: here.
* This is a new generated file which will be included from <glibtop.h>. WeMartin Baulig1999-05-121-0/+4
| | | | | | | | | | | | | | | | | 1999-05-12 Martin Baulig <martin@home-of-linux.org> * glibtop-config.h: This is a new generated file which will be included from <glibtop.h>. We define things like `u_int64_t' and LIBGTOP_*_VERSION here so we can compile LibGTop applications with `libgtop-config --cflags`. * configure.in: Create glibtop-config.h. (GLIBTOP_*_INCS): Added `-I $(pkglibdir)/include'. * libgtop-config.h.in: Added `--cflags', `--libs' and `--extra-libs' parameter so you can now use LibGTop even in no-autoconf apps. * Makefile.am: Install `glibtop-config.h' in `$(pkglibdir)/include'.
* New file. (GLIBTOP_MAX_CPU): Define this here and increase it to 256.Martin Baulig1999-04-181-0/+1
| | | | | | | 1999-04-18 Martin Baulig <martin@home-of-linux.org> * include/glibtop/limits.h: New file. (GLIBTOP_MAX_CPU): Define this here and increase it to 256.
* Added `wanted'. Applications can set the features they are interested inMartin Baulig1999-03-231-0/+1
| | | | | | | | | | | 1999-03-23 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Added `wanted'. Applications can set the features they are interested in here. This way we don't waste CPU getting expensive data that aren't really needed. * LIBGTOP-VERSION: This breaks backward compatibility and also added new functions; set binary age and interface age to 0.
* Set the copyright of LibGTop to the GNU General Public License.Martin Baulig1999-02-231-16/+18
| | | | | | | | | 1999-02-22 Martin Baulig <martin@home-of-linux.org> Set the copyright of LibGTop to the GNU General Public License. * copyright.txt: Set the year to 1998-99 and pretty-format it a little bit. Same in all C source and header files.
* Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all __END_DECLSMartin Baulig1999-02-191-4/+11
| | | | | | | | 1999-02-19 Martin Baulig <martin@home-of-linux.org> * Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all __END_DECLS with LIBGTOP_END_DECLS; remove all __P macros and use real function prototypes.
* Added `ncpu'. This is zero for single processor systems and the number ofMartin Baulig1998-09-091-0/+1
| | | | | | | | | | | 1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de> * glibtop.h (glibtop): Added `ncpu'. This is zero for single processor systems and the number of CPUs otherwise. * include/glibtop/cpu.h (glibtop_cpu): Added `xcpu_total', `xcpu_user', `xcpu_nice', `xcpu_sys' and `xcpu_idle'. (GLIBTOP_NCPU): #define this to 4.
* `make distcheck' cleanups - Hey, it really works, guys !Martin Baulig1998-08-161-2/+2
|
* New file. Added definition of `proc_map'.Martin Baulig1998-08-101-0/+4
| | | | | | | 1998-08-10 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procmap.h (glibtop_proc_map): New file. * features.def: Added definition of `proc_map'.