Add new error code for remote errors.
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 8 Apr 2009 23:33:21 +0000 (01:33 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 8 Apr 2009 23:33:21 +0000 (01:33 +0200)
Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

include/libvscmisc/types.h
misc/error.c

index a56e6a0..10e5ec0 100644 (file)
@@ -41,6 +41,7 @@ extern "C" {
 enum VscErrorCode {
        VSC__ERROR_CODE__UNDEFINED = 0,
        VSC__ERROR_CODE__INTERNAL_ERROR,
+       VSC__ERROR_CODE__REMOTE_ERROR,
        VSC__ERROR_CODE__OUT_OF_MEMORY,
        VSC__ERROR_CODE__XMLRPC_ERROR,
        VSC__ERROR_CODE__PTHREAD_ERROR,
index 919bfe6..04eaad3 100644 (file)
@@ -84,6 +84,9 @@ vsc_error_string (enum VscErrorCode code)
        case VSC__ERROR_CODE__INTERNAL_ERROR:
                return "Internal error";
 
+       case VSC__ERROR_CODE__REMOTE_ERROR:
+               return "Remote error";
+
        case VSC__ERROR_CODE__OUT_OF_MEMORY:
                return "Out of memory";