Added -Werror.

2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (INCLUDES): Added -Werror.

	* include/glibtop/open.h (_glibtop_open_sysdeps): The first
	argument is now a `glibtop_client *', removed the `flags' argument
	and added `const char **backend_args' and `GError **opt_error'.
This commit is contained in:
Martin Baulig
2000-11-22 21:26:15 +00:00
committed by Martin Baulig
parent f704c4becf
commit 6e4f80b8e2
12 changed files with 68 additions and 53 deletions

View File

@@ -1,5 +1,11 @@
2000-11-22 Martin Baulig <martin@home-of-linux.org> 2000-11-22 Martin Baulig <martin@home-of-linux.org>
* configure.in (INCLUDES): Added -Werror.
* include/glibtop/open.h (_glibtop_open_sysdeps): The first
argument is now a `glibtop_client *', removed the `flags' argument
and added `const char **backend_args' and `GError **opt_error'.
* include/glibtop/backends.h (glibtop_open_backend_l): Allow * include/glibtop/backends.h (glibtop_open_backend_l): Allow
the `error' argument to be NULL; propagate the error to the the `error' argument to be NULL; propagate the error to the
glibtop_client in this case. glibtop_client in this case.

View File

@@ -328,7 +328,7 @@ AC_SUBST(machine_incs)
LIBGTOP_BACKEND_DIR="\$(datadir)/libgtop/backends" LIBGTOP_BACKEND_DIR="\$(datadir)/libgtop/backends"
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_builddir)/include -I\$(top_srcdir)/intl $GNOMESUPPORT_CFLAGS $GLIB_CFLAGS $XML_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\" -DLIBGTOP_BACKEND_DIR=\"'"$LIBGTOP_BACKEND_DIR"'\"' INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -Werror -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_builddir)/include -I\$(top_srcdir)/intl $GNOMESUPPORT_CFLAGS $GLIB_CFLAGS $XML_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\" -DLIBGTOP_BACKEND_DIR=\"'"$LIBGTOP_BACKEND_DIR"'\"'
AC_SUBST(INCLUDES) AC_SUBST(INCLUDES)

View File

@@ -70,8 +70,9 @@ glibtop_open_s (glibtop_server *server, const char *program_name,
#ifdef _IN_LIBGTOP #ifdef _IN_LIBGTOP
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags); const u_int64_t features, const char **backend_args,
GError **opt_error);
#endif /* _IN_LIBGTOP */ #endif /* _IN_LIBGTOP */

View File

@@ -10,7 +10,8 @@ noinst_LTLIBRARIES = libgtop_server.la
libgtop_la_SOURCES = errors.c backend.c \ libgtop_la_SOURCES = errors.c backend.c \
init-backends.c open-backend.c \ init-backends.c open-backend.c \
glibtop-client.c glibtop-server.c glibtop-client.c glibtop-server.c \
sysdeps-init.c
libgtop_server_la_SOURCES = error.c xmalloc.c libgtop_server_la_SOURCES = error.c xmalloc.c

View File

@@ -99,7 +99,7 @@ glibtop_client_warning_handler (glibtop_client *client, GError *error)
} }
void static void
glibtop_client_marshal_VOID__POINTER (GClosure *closure, glibtop_client_marshal_VOID__POINTER (GClosure *closure,
GValue *return_value, GValue *return_value,
guint n_param_values, guint n_param_values,

View File

@@ -65,11 +65,12 @@ const glibtop_signame glibtop_sys_siglist [] =
}; };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-server", glibtop_open_backend_l (client, "glibtop-backend-server",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -65,13 +65,14 @@ const glibtop_signame glibtop_sys_siglist [] =
}; };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-kernel", glibtop_open_backend_l (client, "glibtop-backend-kernel",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-sysdeps", glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -65,11 +65,12 @@ const glibtop_signame glibtop_sys_siglist [] =
}; };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-sysdeps", glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -33,13 +33,14 @@ const glibtop_signame glibtop_sys_siglist [] =
{ { 0, NULL, NULL } }; { { 0, NULL, NULL } };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-sysdeps", glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-server", glibtop_open_backend_l (client, "glibtop-backend-server",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -33,13 +33,14 @@ const glibtop_signame glibtop_sys_siglist [] =
{ { 0, NULL, NULL } }; { { 0, NULL, NULL } };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-sysdeps", glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-server", glibtop_open_backend_l (client, "glibtop-backend-server",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -33,11 +33,12 @@ const glibtop_signame glibtop_sys_siglist [] =
{ { 0, NULL, NULL } }; { { 0, NULL, NULL } };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-server", glibtop_open_backend_l (client, "glibtop-backend-server",
features, NULL); features, backend_args, opt_error);
} }

View File

@@ -33,11 +33,12 @@ const glibtop_signame glibtop_sys_siglist [] =
{ { 0, NULL, NULL } }; { { 0, NULL, NULL } };
void void
_glibtop_open_sysdeps (glibtop *server, const char *program_name, _glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
const unsigned long features, const unsigned flags) const u_int64_t features, const char **backend_args,
GError **opt_error)
{ {
glibtop_open_backend_l (server, "glibtop-backend-common", glibtop_open_backend_l (client, "glibtop-backend-common",
features, NULL); features, backend_args, opt_error);
glibtop_open_backend_l (server, "glibtop-backend-sysdeps", glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
features, NULL); features, backend_args, opt_error);
} }