Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.

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.
This commit is contained in:
Martin Baulig
2001-04-20 20:50:01 +00:00
committed by Martin Baulig
parent a3557112a7
commit 530cc00ae7
49 changed files with 112 additions and 140 deletions

View File

@@ -1,3 +1,8 @@
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.
2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/glibtop-server.h (glibtop_closure):

View File

@@ -36,7 +36,7 @@
#include <glibtop/glibtop-client.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop glibtop;
@@ -55,6 +55,6 @@ glibtop_init_s (glibtop_server *server_ptr,
unsigned long features,
unsigned flags);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_ARRAY_NUMBER 0
#define GLIBTOP_ARRAY_SIZE 1

View File

@@ -31,13 +31,13 @@
#include <glibtop.h>
#include <glibtop/union.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
struct _glibtop_call_vector
{
@@GLIBTOP_CALL_VECTOR@@
};
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -28,13 +28,13 @@
#include <glibtop.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
void glibtop_close_r (glibtop *server);
void glibtop_close_s (glibtop_server *server);
void glibtop_close_p (glibtop_server *server);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
/* glibtop_cpu */

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_CPU_TOTAL 0
#define GLIBTOP_CPU_USER 1
@@ -93,6 +93,6 @@ extern const char *glibtop_descriptions_cpu [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -28,7 +28,7 @@
#include <glibtop.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
void glibtop_error_vr (glibtop_server *server, char *format, va_list args);
void glibtop_warn_vr (glibtop_server *server, char *format, va_list args);
@@ -41,6 +41,6 @@ void glibtop_warn_r (glibtop_server *server, char *format, ...);
void glibtop_error_io_r (glibtop_server *server, char *format, ...);
void glibtop_warn_io_r (glibtop_server *server, char *format, ...);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -30,7 +30,7 @@
#include <gerror.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_ERROR glibtop_error_quark ()
@@ -90,6 +90,6 @@ void
glibtop_warn_io_l (glibtop_client *client, glibtop_error code,
char *format, ...);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_FSUSAGE_BLOCKS 0
#define GLIBTOP_FSUSAGE_BFREE 1
@@ -65,6 +65,6 @@ extern const char *glibtop_descriptions_fsusage [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glib.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
GPtrArray *
glibtop_get_proc_args_as_array_l (glibtop_client *client, pid_t pid);
@@ -46,5 +46,5 @@ glibtop_get_proc_map_as_array_l (glibtop_client *client, pid_t pid);
GPtrArray *
glibtop_get_mountlist_as_array_l (glibtop_client *client, int all_fs);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -31,7 +31,7 @@
#include <glibtop/glibtop-server.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop_backend_info glibtop_backend_info;
typedef struct _glibtop_backend_entry glibtop_backend_entry;
@@ -97,6 +97,6 @@ glibtop_backend_by_name (const char *backend_name);
void
glibtop_init_backends (void);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <gobject/gobject.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_TYPE_BACKEND (glibtop_backend_get_type ())
#define GLIBTOP_BACKEND(backend) (G_TYPE_CHECK_INSTANCE_CAST ((backend), GLIBTOP_TYPE_BACKEND, glibtop_backend))
@@ -80,6 +80,6 @@ glibtop_backend_get_call_vector (glibtop_backend *backend);
glibtop_server *
glibtop_backend_get_server (glibtop_backend *backend);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -31,7 +31,7 @@
#include <glibtop/glibtop-backend.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_TYPE_CLIENT (glibtop_client_get_type ())
#define GLIBTOP_CLIENT(client) (G_TYPE_CHECK_INSTANCE_CAST ((client), GLIBTOP_TYPE_CLIENT, glibtop_client))
@@ -91,6 +91,6 @@ void
glibtop_client_remove_backend (glibtop_client *client,
glibtop_backend *backend);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop/global.h>
#include <glibtop/sysdeps.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop_server glibtop_server;
typedef struct _glibtop_server_info glibtop_server_info;
@@ -70,6 +70,6 @@ glibtop_server_ref (glibtop_server *server);
void
glibtop_server_unref (glibtop_server *server);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -30,40 +30,24 @@
#include <config.h>
#endif
/*
* All declarations are enclosed in BEGIN_LIBGTOP_DECLS and
* END_LIBGTOP_DECLS so that C++ compilers don't mangle their names.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#undef BEGIN_LIBGTOP_DECLS
#undef END_LIBGTOP_DECLS
#ifdef __cplusplus
# define BEGIN_LIBGTOP_DECLS extern "C" {
# define END_LIBGTOP_DECLS }
#else
# define BEGIN_LIBGTOP_DECLS /* empty */
# define END_LIBGTOP_DECLS /* empty */
#include <stdarg.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef _IN_LIBGTOP
#ifdef HAVE_MEMORY_H
#include <memory.h>
#endif
/* Provide macros to feature the GCC function attribute.
*/
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
#define G_GNUC_NORETURN \
__attribute__((noreturn))
#define G_GNUC_CONST \
__attribute__((const))
#define G_GNUC_UNUSED \
__attribute__((unused))
#else /* !__GNUC__ */
#define G_GNUC_NORETURN
#define G_GNUC_CONST
#define G_GNUC_UNUSED
#endif /* !__GNUC__ */
#include <string.h>
#include <sys/types.h>
#endif /* _IN_LIBGTOP */
#include <gmacros.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
@@ -102,25 +86,8 @@
#endif
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_MEMORY_H
#include <memory.h>
#endif
#include <string.h>
#include <sys/types.h>
#ifdef _IN_LIBGTOP
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -131,7 +98,7 @@
#ifdef _IN_LIBGTOP
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#ifndef _
#define _(String) dgettext (LIBGTOP_PACKAGE, String)
@@ -142,7 +109,7 @@ BEGIN_LIBGTOP_DECLS
char *strerror (int errno);
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif /* _IN_LIBGTOP */

View File

@@ -33,7 +33,7 @@
#define GLIBTOP_INODEDB_ALL 7
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop_inodedb glibtop_inodedb;
@@ -60,6 +60,6 @@ glibtop_inodedb_lookup_s (glibtop_server *server,
void
glibtop_inodedb_close_s (glibtop_server *server, glibtop_closure *closure, glibtop_inodedb *inodedb);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glibtop/compat_10.h>
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_INTERFACE_IF_FLAGS 0
#define GLIBTOP_INTERFACE_TRANSPORT 1
@@ -198,6 +198,6 @@ extern const char *glibtop_descriptions_interface_names [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -28,7 +28,7 @@
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
/* Nobody should really be using more than 64 processors. */
#define GLIBTOP_NCPU 64
@@ -51,6 +51,6 @@ BEGIN_LIBGTOP_DECLS
/* Maximum length of a backend name. */
#define GLIBTOP_BACKEND_NAME_LEN 40
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_LOADAVG_LOADAVG 0
#define GLIBTOP_LOADAVG_NR_RUNNING 1
@@ -76,6 +76,6 @@ extern const char *glibtop_descriptions_loadavg [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_MEM_TOTAL 0
#define GLIBTOP_MEM_USED 1
@@ -84,6 +84,6 @@ extern const char *glibtop_descriptions_mem [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glibtop/compat_10.h>
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop_mountentry glibtop_mountentry;
@@ -63,6 +63,6 @@ extern const char *glibtop_descriptions_mountlist [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_MSG_LIMITS_MSGPOOL 0
#define GLIBTOP_MSG_LIMITS_MSGMAP 1
@@ -82,7 +82,7 @@ extern const char *glibtop_descriptions_msg_limits [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_NETINFO_IF_FLAGS 0
#define GLIBTOP_NETINFO_TRANSPORT 1
@@ -78,6 +78,6 @@ extern const char *glibtop_descriptions_netinfo [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_NETLOAD_PACKETS_IN 0
#define GLIBTOP_NETLOAD_PACKETS_OUT 1
@@ -90,6 +90,6 @@ extern const char *glibtop_descriptions_netload [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -26,7 +26,7 @@
#include <glibtop.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define _GLIBTOP_INIT_STATE_INIT 0x10000
#define _GLIBTOP_INIT_STATE_OPEN 0x20000
@@ -76,6 +76,6 @@ _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
#endif /* _IN_LIBGTOP */
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -27,7 +27,7 @@
#include <glibtop.h>
#include <glibtop/open.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PARAM_ERROR_METHOD 1
#define GLIBTOP_PARAM_FEATURES 2
@@ -60,6 +60,6 @@ int
glibtop_set_parameter_l (glibtop *server, const unsigned parameter,
const void *data_ptr, size_t data_size);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PPP_STATE 0
#define GLIBTOP_PPP_BYTES_IN 1
@@ -80,6 +80,6 @@ extern const char *glibtop_descriptions_ppp [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glibtop/compat_10.h>
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#if GLIBTOP_SUID_PROC_ARGS
#define glibtop_get_proc_args_r glibtop_get_proc_args_p
@@ -66,6 +66,6 @@ extern const char *glibtop_descriptions_proc_args [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -31,7 +31,7 @@
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_CWD_SIZE 0
#define GLIBTOP_PROC_CWD_DEVICE 1

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_KERNEL_K_FLAGS 0
#define GLIBTOP_PROC_KERNEL_MIN_FLT 1
@@ -104,6 +104,6 @@ extern const char *glibtop_descriptions_proc_kernel [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glibtop/compat_10.h>
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
/* You can use the folowing constants as the `which' member of
* glibtop_get_proclist () to specify which processes to fetch. */
@@ -87,6 +87,6 @@ extern const char *glibtop_descriptions_proclist [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glibtop/compat_10.h>
#include <glibtop/array.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_MAP_ENTRY_START 1
#define GLIBTOP_MAP_ENTRY_END 2
@@ -92,6 +92,6 @@ extern const char *glibtop_descriptions_proc_map [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_MEM_SIZE 0
#define GLIBTOP_PROC_MEM_VSIZE 1
@@ -84,6 +84,6 @@ extern const char *glibtop_descriptions_proc_mem [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_SEGMENT_TEXT_RSS 0
#define GLIBTOP_PROC_SEGMENT_SHLIB_RSS 1
@@ -104,6 +104,6 @@ extern const char *glibtop_descriptions_proc_segment [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_SIGNAL_SIGNAL 0
#define GLIBTOP_PROC_SIGNAL_BLOCKED 1
@@ -78,6 +78,6 @@ extern const char *glibtop_descriptions_proc_signal [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_STATE_CMD 0
#define GLIBTOP_PROC_STATE_STATE 1
@@ -104,6 +104,6 @@ extern const char *glibtop_descriptions_proc_state [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -30,7 +30,7 @@
#include <glibtop/cpu.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_TIME_START_TIME 0
#define GLIBTOP_PROC_TIME_RTIME 1
@@ -101,6 +101,6 @@ extern const char *glibtop_descriptions_proc_time [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_PROC_UID_UID 0
#define GLIBTOP_PROC_UID_EUID 1
@@ -106,6 +106,6 @@ extern const char *glibtop_descriptions_proc_uid [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_SEM_LIMITS_SEMMAP 0
#define GLIBTOP_SEM_LIMITS_SEMMNI 1
@@ -88,6 +88,6 @@ extern const char *glibtop_descriptions_sem_limits [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_SHM_LIMITS_SHMMAX 0
#define GLIBTOP_SHM_LIMITS_SHMMIN 1
@@ -78,6 +78,6 @@ extern const char *glibtop_descriptions_shm_limits [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <sys/signal.h>
#endif
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef struct _glibtop_signame glibtop_signame;
@@ -44,6 +44,6 @@ struct _glibtop_signame
extern const glibtop_signame glibtop_sys_siglist [];
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_SWAP_TOTAL 0
#define GLIBTOP_SWAP_USED 1
@@ -78,6 +78,6 @@ extern const char *glibtop_descriptions_swap [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -28,7 +28,7 @@
#include <glibtop.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_SYSDEPS_CPU 0
#define GLIBTOP_SYSDEPS_MEM 1
@@ -105,6 +105,6 @@ extern const char *glibtop_descriptions_sysdeps [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -32,7 +32,7 @@
#include <glib.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_SYSINFO_CPUINFO 0
@@ -59,6 +59,6 @@ struct _glibtop_sysinfo
glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop_server *server);
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -26,7 +26,7 @@
#ifndef __GLIBTOP_TYPES_H__
#define __GLIBTOP_TYPES_H__
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_TYPE_LONG 1
#define GLIBTOP_TYPE_ULONG 2
@@ -36,6 +36,6 @@ BEGIN_LIBGTOP_DECLS
#define GLIBTOP_TYPE_CHAR 6
#define GLIBTOP_TYPE_STRING 7
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -56,7 +56,7 @@
#include <glibtop/interfaces.h>
#include <glibtop/ppp.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
typedef union _glibtop_union glibtop_union;
@@ -89,6 +89,6 @@ union _glibtop_union
glibtop_ppp ppp;
};
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
#define GLIBTOP_UPTIME_UPTIME 0
#define GLIBTOP_UPTIME_IDLETIME 1
@@ -74,6 +74,6 @@ extern const char *glibtop_descriptions_uptime [];
#endif
END_LIBGTOP_DECLS
G_END_DECLS
#endif

View File

@@ -29,7 +29,7 @@
#include <glibtop.h>
#include <glibtop/error.h>
BEGIN_LIBGTOP_DECLS
G_BEGIN_DECLS
void *glibtop_malloc_r (glibtop_server *server, size_t size);
void *glibtop_calloc_r (glibtop_server *server, size_t nmemb, size_t size);
@@ -37,6 +37,6 @@ void *glibtop_realloc_r (glibtop_server *server, void *ptr, size_t size);
char *glibtop_strdup_r (glibtop_server *server, const char *string);
void glibtop_free_r (glibtop_server *server, const void *ptr);
END_LIBGTOP_DECLS
G_END_DECLS
#endif