Code

data: Added sdb_data_isnull().
[sysdb.git] / src / include / core / data.h
index 02f99c5313ebc33ce18a6826cd33740ec364802a..af4ae5abb7e0d6f25c83e2d7856f90b9b17cd9ee 100644 (file)
@@ -115,6 +115,14 @@ sdb_data_free_datum(sdb_data_t *datum);
 int
 sdb_data_cmp(const sdb_data_t *d1, const sdb_data_t *d2);
 
+/*
+ * sdb_data_isnull:
+ * Determine whether a datum is NULL. A datum is considered to be NULL if
+ * either datum is NULL or if the string or binary datum is NULL.
+ */
+_Bool
+sdb_data_isnull(const sdb_data_t *datum);
+
 /*
  * Operators supported by sdb_data_eval_expr.
  */