|
@@ -111,36 +111,28 @@ typedef int LSUP_rc;
|
|
|
#define LSUP_MIN_WARNING LSUP_NOACTION
|
|
|
#define LSUP_MAX_WARNING LSUP_CONFLICT
|
|
|
|
|
|
-/** @brief Generic error return code.
|
|
|
- */
|
|
|
+/// Generic error return code.
|
|
|
#define LSUP_ERROR -88899
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Codec parser error.
|
|
|
#define LSUP_PARSE_ERR -88898
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// An invalid input value was provided.
|
|
|
#define LSUP_VALUE_ERR -88897
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Error handling a store transaction.
|
|
|
#define LSUP_TXN_ERR -88896
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Low-level database error.
|
|
|
#define LSUP_DB_ERR -88895
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Functionality is not implemented.
|
|
|
#define LSUP_NOT_IMPL_ERR -88894
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// I/O error.
|
|
|
#define LSUP_IO_ERR -88893
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Memory error.
|
|
|
#define LSUP_MEM_ERR -88892
|
|
|
|
|
|
/** @brief Conflict error.
|
|
@@ -152,8 +144,7 @@ typedef int LSUP_rc;
|
|
|
*/
|
|
|
#define LSUP_CONFLICT_ERR -88891
|
|
|
|
|
|
-/** @brief TODO
|
|
|
- */
|
|
|
+/// Error while handling environment setup or teardown.
|
|
|
#define LSUP_ENV_ERR -88890
|
|
|
|
|
|
/*
|
|
@@ -184,25 +175,39 @@ extern char *warning_msg[], *error_msg[];
|
|
|
extern char *LSUP_root_path;
|
|
|
|
|
|
|
|
|
+/// 32-bit hash data type.
|
|
|
typedef XXH32_hash_t LSUP_Hash32;
|
|
|
+/// 64-bit hash data type.
|
|
|
typedef XXH64_hash_t LSUP_Hash64;
|
|
|
+/// 128-bit hash data type.
|
|
|
typedef XXH128_hash_t LSUP_Hash128;
|
|
|
-// TODO Add 32-bit switch.
|
|
|
+/** @brief Default hash data type.
|
|
|
+ *
|
|
|
+ * This is 64 bit long for 64-bit systems.
|
|
|
+ *
|
|
|
+ * @todo Add 32-bit switch.
|
|
|
+ */
|
|
|
typedef LSUP_Hash64 LSUP_Hash;
|
|
|
|
|
|
+/// Boolean operations that can be performed on a graph.
|
|
|
typedef enum {
|
|
|
- LSUP_BOOL_UNION,
|
|
|
- LSUP_BOOL_SUBTRACTION,
|
|
|
- LSUP_BOOL_INTERSECTION,
|
|
|
- LSUP_BOOL_XOR,
|
|
|
+ LSUP_BOOL_UNION, ///< Boolean union.
|
|
|
+ LSUP_BOOL_SUBTRACTION, ///< Boolean subtraction.
|
|
|
+ LSUP_BOOL_INTERSECTION, ///< Boolean intersection.
|
|
|
+ LSUP_BOOL_XOR, ///< Boolean XOR.
|
|
|
} LSUP_bool_op;
|
|
|
|
|
|
|
|
|
+/// Term key, i.e., hash of a serialized term.
|
|
|
typedef size_t LSUP_Key;
|
|
|
+/// Array of two #LSUP_Key values.
|
|
|
typedef LSUP_Key LSUP_DoubleKey[2];
|
|
|
+/// Array of three #LSUP_Key values, representing a triple.
|
|
|
typedef LSUP_Key LSUP_TripleKey[3];
|
|
|
+/// Array of three #LSUP_Key values, representing a triple with context.
|
|
|
typedef LSUP_Key LSUP_QuadKey[4];
|
|
|
|
|
|
+/// UUID string tpe.
|
|
|
typedef char uuid_str_t[UUIDSTR_SIZE];
|
|
|
|
|
|
|