diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-08-12 09:10:19 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-08-12 09:10:19 +0000 |
| commit | cd708cc417c90b24f1d887375d0c1a1d79e294ab (patch) | |
| tree | ad50b8e8244375c43fc401899c99cbc208c705f8 | |
| parent | 6725eb166c0609e6ea5b1421f458bde9346b2076 (diff) | |
added LASSO_ERROR_UNIMPLEMENTED error code
| -rw-r--r-- | lasso/errors.c | 2 | ||||
| -rw-r--r-- | lasso/errors.h | 1 | ||||
| -rw-r--r-- | swig/Lasso.i | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/lasso/errors.c b/lasso/errors.c index 263c0de1..ad0d9e8e 100644 --- a/lasso/errors.c +++ b/lasso/errors.c @@ -31,6 +31,8 @@ const char* lasso_strerror(int error_code) { switch (error_code) { + case LASSO_ERROR_UNIMPLEMENTED: + return "Unimplemented part of Lasso"; case LASSO_XML_ERROR_NODE_NOT_FOUND: return "Unable to get child of element."; case LASSO_XML_ERROR_NODE_CONTENT_NOT_FOUND: diff --git a/lasso/errors.h b/lasso/errors.h index f1e6562f..2681ff99 100644 --- a/lasso/errors.h +++ b/lasso/errors.h @@ -27,6 +27,7 @@ /* undefined */ #define LASSO_ERROR_UNDEFINED -1 +#define LASSO_ERROR_UNIMPLEMENTED -2 /* generic XML */ #define LASSO_XML_ERROR_NODE_NOT_FOUND -10 diff --git a/swig/Lasso.i b/swig/Lasso.i index 46f2c93d..4ad337bc 100644 --- a/swig/Lasso.i +++ b/swig/Lasso.i @@ -958,6 +958,7 @@ typedef enum { /* undefined */ #ifndef SWIGPHP4 %rename(ERROR_UNDEFINED) LASSO_ERROR_UNDEFINED; +%rename(ERROR_UNIMPLEMENTED) LASSO_ERROR_UNIMPLEMENTED; #endif /* generic XML */ |
