summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-12-23 15:56:51 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-12-23 15:56:51 +0000
commit817057bc3cebfb6c057f5d875ce0f1ffed89febd (patch)
tree5fe53790e3ec9acf8e0d13b209471121f6a7b61a
parent9fe6dadcecc6c487d317bffac3db4a916368ff51 (diff)
downloadlibgtop-817057bc3cebfb6c057f5d875ce0f1ffed89febd.tar.gz
Marked private functions G_GNUC_INTERNAL.
* fsusage.c: (_glibtop_linux_get_fsusage_read_write): * glibtop_private.h: Marked private functions G_GNUC_INTERNAL.
-rw-r--r--sysdeps/linux/ChangeLog5
-rw-r--r--sysdeps/linux/fsusage.c15
-rw-r--r--sysdeps/linux/glibtop_private.h8
3 files changed, 18 insertions, 10 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
index 8c622662..c7dab447 100644
--- a/sysdeps/linux/ChangeLog
+++ b/sysdeps/linux/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-23 Benoît Dejean <tazforever@dlfp.org>
+
+ * fsusage.c: (_glibtop_linux_get_fsusage_read_write):
+ * glibtop_private.h: Marked private functions G_GNUC_INTERNAL.
+
2004-11-30 Benoît Dejean <tazforever@dlfp.org>
* proclist.c: (glibtop_get_proclist_s): Glibified. g_array_free which
diff --git a/sysdeps/linux/fsusage.c b/sysdeps/linux/fsusage.c
index 67572469..e6035577 100644
--- a/sysdeps/linux/fsusage.c
+++ b/sysdeps/linux/fsusage.c
@@ -13,9 +13,11 @@
#include <string.h>
#include <stdlib.h>
-void _glibtop_linux_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
+void
+G_GNUC_INTERNAL
+_glibtop_linux_get_fsusage_read_write(glibtop *server,
+ glibtop_fsusage *buf,
+ const char *path);
/*
* Linux 2.6.x
@@ -92,9 +94,10 @@ static void linux_2_4_0(glibtop *server, glibtop_fsusage *buf, const char *path)
}
-void _glibtop_linux_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
+void G_GNUC_INTERNAL
+_glibtop_linux_get_fsusage_read_write(glibtop *server,
+ glibtop_fsusage *buf,
+ const char *path)
{
if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
{
diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h
index 5b9e69b6..66c426b2 100644
--- a/sysdeps/linux/glibtop_private.h
+++ b/sysdeps/linux/glibtop_private.h
@@ -67,17 +67,17 @@ skip_line (const char *p)
}
-unsigned long long
+unsigned long long G_GNUC_INTERNAL
get_scaled(const char *buffer, const char *key);
/* aborts on error */
-void
+void G_GNUC_INTERNAL
file_to_buffer(glibtop *server, char *buffer, const char *filename);
/* return < 0 on error, otherwise 0 on success */
-int
-try_file_to_buffer(char *buffer, const char *format, ...);
+int G_GNUC_INTERNAL
+try_file_to_buffer(char *buffer, const char *format, ...) G_GNUC_PRINTF(2, 3);
/* some inline functions that wrap proc path