summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-06-14 16:47:09 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-14 16:47:09 +0000
commit58707dac42579bf31aeb6ae05d0243bfaad86ccf (patch)
tree2e7543840acb60fb4d8af3f673e3426396508e10 /include
parent8f14d30d11a31ab77fd07d2ce620d49e2ccbad75 (diff)
downloadlibgtop-58707dac42579bf31aeb6ae05d0243bfaad86ccf.tar.gz
New function - same as `glibtop_error_r', but doesn't call `exit'.
1998-06-14 Martin Baulig <martin@home-of-linux.org> * sysdeps/common/error.c (glibtop_warn_r): New function - same as `glibtop_error_r', but doesn't call `exit'. (glibtop_error_io_r, glibtop_warn_io_r): New functions, display `strerror (errno)' together with message.
Diffstat (limited to 'include')
-rw-r--r--include/glibtop/error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/glibtop/error.h b/include/glibtop/error.h
index adb85828..915554c9 100644
--- a/include/glibtop/error.h
+++ b/include/glibtop/error.h
@@ -27,8 +27,16 @@
__BEGIN_DECLS
#define glibtop_error(p1, args...) glibtop_error_r(glibtop_global_server , p1 , ## args)
+#define glibtop_warn(p1, args...) glibtop_warn_r(glibtop_global_server , p1 , ## args)
+
+#define glibtop_error_io(p1, args...) glibtop_error_io_r(glibtop_global_server , p1 , ## args)
+#define glibtop_warn_io(p1, args...) glibtop_warn_io_r(glibtop_global_server , p1 , ## args)
extern void glibtop_error_r __P((glibtop *, char *, ...));
+extern void glibtop_warn_r __P((glibtop *, char *, ...));
+
+extern void glibtop_error_io_r __P((glibtop *, char *, ...));
+extern void glibtop_warn_io_r __P((glibtop *, char *, ...));
__END_DECLS