This is a very big an possibly breaking commit.

It changes the return values of all sysdeps functions which were
previosly returning void to int.

This is the first step to implement better error handling in LibGTop.

Martin

1999-10-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed
	the return value of all `glibtop_get_<feature>_* ()' and all
 	`glibtop_init_<feature>_* ()' functions from void to int.

	* features.def: Reflect changes of the return values.
	* sysdeps/*/*.c: Reflect changes of the return values.
This commit is contained in:
Martin Baulig
1999-10-24 19:09:32 +00:00
committed by Martin Baulig
parent eae892c9b1
commit a5dd7e9063
180 changed files with 403 additions and 394 deletions

View File

@@ -41,7 +41,7 @@ static const unsigned long _glibtop_sysdeps_ppp =
/* Init function. */
void
int
glibtop_init_ppp_s (glibtop *server)
{
server->sysdeps.ppp = _glibtop_sysdeps_ppp;
@@ -177,7 +177,7 @@ static int is_ISDN_on (glibtop *server, int *online)
/* Provides PPP/ISDN information. */
void
int
glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
{
int in, out, online;