New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error

1999-12-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h
	(GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant.
	(GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant.
This commit is contained in:
Martin Baulig
1999-12-22 12:51:59 +00:00
committed by Martin Baulig
parent d86a386ad8
commit 1ad3a69d8f
3 changed files with 11 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
1999-12-22 Martin Baulig <martin@home-of-linux.org> 1999-12-22 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/errors.h
(GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant.
(GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant.
* lib/errors.c (glibtop_get_errno_l): New global function. * lib/errors.c (glibtop_get_errno_l): New global function.
* lib/lib.pl: For functions with a `retval' return type, set * lib/lib.pl: For functions with a `retval' return type, set

View File

@@ -41,7 +41,10 @@ BEGIN_LIBGTOP_DECLS
#define GLIBTOP_ERROR_NO_SUCH_PROCESS 7 #define GLIBTOP_ERROR_NO_SUCH_PROCESS 7
#define GLIBTOP_MAX_ERROR 8 #define GLIBTOP_ERROR_NO_KERNEL_SUPPORT 8
#define GLIBTOP_ERROR_INCOMPATIBLE_KERNEL 9
#define GLIBTOP_MAX_ERROR 10
char * char *
glibtop_get_error_string_l (glibtop *server, unsigned error_number); glibtop_get_error_string_l (glibtop *server, unsigned error_number);

View File

@@ -33,7 +33,9 @@ const char *glibtop_error_strings[GLIBTOP_MAX_ERROR] = {
N_("Attempted to modify a read-only value"), N_("Attempted to modify a read-only value"),
N_("Parameter size mismatch"), N_("Parameter size mismatch"),
N_("Communication with LibGTop server failed"), N_("Communication with LibGTop server failed"),
N_("No such process") N_("No such process"),
N_("No kernel support"),
N_("Incompatible kernel version")
}; };
char * char *