From 7eb36f9021e86a75fd291b6aae424117a230134d Mon Sep 17 00:00:00 2001 From: crunchy Date: Thu, 19 Sep 2002 20:46:02 +0000 Subject: added error handing functions --- libmpio/mpio.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'libmpio/mpio.h') diff --git a/libmpio/mpio.h b/libmpio/mpio.h index b4c381c..7df2349 100644 --- a/libmpio/mpio.h +++ b/libmpio/mpio.h @@ -1,7 +1,7 @@ /* -*- linux-c -*- */ /* - * $Id: mpio.h,v 1.5 2002/09/18 22:18:29 germeier Exp $ + * $Id: mpio.h,v 1.6 2002/09/19 20:46:02 crunchy Exp $ * * Library for USB MPIO-* * @@ -94,6 +94,19 @@ int mpio_sync(mpio_t *, mpio_mem_t); /* context, memory bank */ int mpio_memory_debug(mpio_t *, mpio_mem_t); +/* + * error handling + */ + +/* returns error code of last error */ +int mpio_errno(void); + +/* returns the description of the error */ +char * mpio_strerror(int errno); + +/* prints the error message of the last error*/ +void mpio_perror(char *prefix); + /* * timeline: * --------- -- cgit v1.2.3