index 580dce06b9a184c17e0c25ce7bc25b75b312be75..6edbea4f173e89000f7869217b145a38ec3294be 100644 (file)
--- a/src/include/core/store.h
+++ b/src/include/core/store.h
#include "core/timeseries.h"
#include "utils/strbuf.h"
+#include <stdbool.h>
#include <stdio.h>
#ifdef __cplusplus
* sdb_store_get_host increments the ref count of the host object. The caller
* needs to deref it when no longer using it.
*/
-_Bool
+bool
sdb_store_has_host(const char *name);
sdb_store_obj_t *
sdb_store_expr_t *
sdb_store_expr_create(int op, sdb_store_expr_t *left, sdb_store_expr_t *right);
+/*
+ * sdb_store_expr_typed:
+ * Creates an expression which evaluates in the context of an object's sibling
+ * as specified by the given type.
+ *
+ * Returns:
+ * - an expression object on success
+ * - NULL else
+ */
+sdb_store_expr_t *
+sdb_store_expr_typed(int typ, sdb_store_expr_t *expr);
+
/*
* sdb_store_expr_fieldvalue:
* Creates an expression which evaluates to the value of the specified
sdb_store_con_matcher(sdb_store_matcher_t *left, sdb_store_matcher_t *right);
/*
- * sdb_store_con_matcher::
+ * sdb_store_inv_matcher::
* Creates a matcher matching the inverse (logical NOT) of a matcher.
*/
sdb_store_matcher_t *