Changed get_sysinfo prototype so that it returns a const pointer. Added

* include/glibtop/sysinfo.h: Changed get_sysinfo prototype so that it
	returns a const pointer. Added missing macro.
This commit is contained in:
Benoît Dejean
2004-06-12 22:39:14 +00:00
parent 09febbf67d
commit a415d909a2
2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
2004-06-13 Benoît Dejean <tazforever@dlfp.org>
* include/glibtop/sysinfo.h: Changed get_sysinfo prototype so that it
returns a const pointer. Added missing macro.
2004-06-12 Benoît Dejean <tazforever@dlfp.org> 2004-06-12 Benoît Dejean <tazforever@dlfp.org>
* include/glibtop/fsusage.h: block_size is now defined as a guint32 * include/glibtop/fsusage.h: block_size is now defined as a guint32

View File

@@ -32,9 +32,10 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLIBTOP_SYSINFO_CPUINFO 0 #define GLIBTOP_SYSINFO_NCPU 0
#define GLIBTOP_SYSINFO_CPUINFO 1
#define GLIBTOP_MAX_SYSINFO 1 #define GLIBTOP_MAX_SYSINFO 2
typedef struct _glibtop_sysinfo glibtop_sysinfo; typedef struct _glibtop_sysinfo glibtop_sysinfo;
@@ -42,9 +43,9 @@ typedef struct _glibtop_entry glibtop_entry;
struct _glibtop_entry struct _glibtop_entry
{ {
GPtrArray *labels; GPtrArray *labels; /* unused */
GHashTable *values; GHashTable *values; /* key -> description */
GHashTable *descriptions; GHashTable *descriptions; /* unused */
}; };
struct _glibtop_sysinfo struct _glibtop_sysinfo
@@ -57,7 +58,7 @@ struct _glibtop_sysinfo
#define glibtop_get_sysinfo_r glibtop_get_sysinfo_s #define glibtop_get_sysinfo_r glibtop_get_sysinfo_s
glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server); const glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server);
G_END_DECLS G_END_DECLS