summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/novel_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index 0edb5ec..17af150 100755
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -80,6 +80,15 @@ enum RemoveIndexResult{
REMOVE_OK = 0, /* remove ok */
REMOVE_ITEM_DONOT_EXISTS /* item don't exists */
};
+
+/* For Phrase Index */
+enum PhraseIndexError{
+ ERROR_OK = 0, /* operate ok */
+ ERROR_NO_SUB_PHRASE_INDEX, /* sub phrase index is not loaded */
+ ERROR_NO_ITEM, /* item has a null slot */
+ ERROR_OUT_OF_RANGE /* beyond the end of the sub phrase index */
+};
+
/*
* n-gram Definition
* no B parameter(there are duplicated items in uni-gram and bi-gram)