New error constant.

2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h (GLIBTOP_ERROR_NO_BACKEND_OPENED):
	New error constant.

	* lib/lib.pl (glibtop_get_<feature>_l): Don't dump core when there
	is no backend opened, but return GLIBTOP_ERROR_NO_BACKEND_OPENED.
This commit is contained in:
Martin Baulig
2000-01-12 21:38:55 +00:00
committed by Martin Baulig
parent 31067e703d
commit 7ba17b2bee
3 changed files with 12 additions and 2 deletions

View File

@@ -46,10 +46,11 @@ BEGIN_LIBGTOP_DECLS
#define GLIBTOP_ERROR_NO_SUCH_BACKEND 10
#define GLIBTOP_ERROR_NOT_IMPLEMENTED 11
#define GLIBTOP_ERROR_NO_BACKEND_OPENED 12
#define GLIBTOP_ERROR_DEMARSHAL_ERROR 12
#define GLIBTOP_ERROR_DEMARSHAL_ERROR 13
#define GLIBTOP_MAX_ERROR 13
#define GLIBTOP_MAX_ERROR 14
char *
glibtop_get_error_string_l (glibtop *server, unsigned error_number);