summaryrefslogtreecommitdiff
path: root/include/hubbub/errors.h
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-09 19:27:54 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-09 19:27:54 +0000
commit14fc365f4e090760b853a004ba145954dae23be4 (patch)
tree6647d43df88102fb3c952e92e14b88cd5d3ec892 /include/hubbub/errors.h
parentd262607f0dd6b5c80be660e3f6db43477259acd8 (diff)
downloadlibhubbub-14fc365f4e090760b853a004ba145954dae23be4.tar.gz
libhubbub-14fc365f4e090760b853a004ba145954dae23be4.tar.bz2
Move tokeniser.c across to using hubbub_error for return codes, not bools, so that "encoding change" requests can be sent back down the chain from the treebuilder at some point.
svn path=/trunk/hubbub/; revision=4978
Diffstat (limited to 'include/hubbub/errors.h')
-rw-r--r--include/hubbub/errors.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/hubbub/errors.h b/include/hubbub/errors.h
index c3b1f5d..0ec434e 100644
--- a/include/hubbub/errors.h
+++ b/include/hubbub/errors.h
@@ -12,12 +12,13 @@
typedef enum hubbub_error {
HUBBUB_OK = 0,
+ HUBBUB_OOD = 1, /**< Out of data */
- HUBBUB_NOMEM = 1,
- HUBBUB_BADPARM = 2,
- HUBBUB_INVALID = 3,
- HUBBUB_FILENOTFOUND = 4,
- HUBBUB_NEEDDATA = 5,
+ HUBBUB_NOMEM = 5,
+ HUBBUB_BADPARM = 6,
+ HUBBUB_INVALID = 7,
+ HUBBUB_FILENOTFOUND = 8,
+ HUBBUB_NEEDDATA = 9,
} hubbub_error;
/* Convert a hubbub error value to a string */