Fixed G_GNUC attribute usage. Replaced macro by inline function.
* fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage. Replaced macro by inline function.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
|
||||
|
||||
* fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage.
|
||||
Replaced macro by inline function.
|
||||
|
||||
2005-01-18 Benoît Dejean <TazForEver@dlfp.org>
|
||||
|
||||
* mountlist.c: (ignore_mount_entry): Re-worked with bsearch.
|
||||
|
@@ -126,13 +126,19 @@ static const unsigned long _glibtop_sysdeps_fsusage =
|
||||
*/
|
||||
|
||||
#ifdef linux
|
||||
void G_GNUC_INTERNAL
|
||||
void
|
||||
_glibtop_linux_get_fsusage_read_write(glibtop *server,
|
||||
glibtop_fsusage *buf,
|
||||
const char *path);
|
||||
const char *path) G_GNUC_INTERNAL;
|
||||
|
||||
static inline void
|
||||
_glibtop_get_fsusage_read_write(glibtop *server,
|
||||
glibtop_fsusage *buf,
|
||||
const char *path)
|
||||
{
|
||||
_glibtop_linux_get_fsusage_read_write(server, buf, path);
|
||||
}
|
||||
|
||||
#define _glibtop_get_fsusage_read_write(S, B, P) \
|
||||
_glibtop_linux_get_fsusage_read_write(S, B, P)
|
||||
|
||||
#else /* default fallback */
|
||||
#warning glibtop_get_fsusage .read .write are not implemented.
|
||||
@@ -143,7 +149,7 @@ _glibtop_get_fsusage_read_write(glibtop *server,
|
||||
{
|
||||
/* NOOP */
|
||||
}
|
||||
#endif
|
||||
#endif /* default fallback */
|
||||
|
||||
/* end _glibtop_get_fsusage_read_write */
|
||||
|
||||
|
Reference in New Issue
Block a user