index 9c2a68d21a4acce7a3abecbc6fa9067bd1ef21c7..180d17931d2c603fb0e295b5b06f4c9637d5cb8a 100644 (file)
--- a/src/core/store_lookup.c
+++ b/src/core/store_lookup.c
return NULL;
} /* sdb_store_parse_matcher_op */
+int
+sdb_store_parse_object_type(const char *name)
+{
+ if (! strcasecmp(name, "host"))
+ return SDB_HOST;
+ else if (! strcasecmp(name, "service"))
+ return SDB_SERVICE;
+ else if (! strcasecmp(name, "metric"))
+ return SDB_METRIC;
+ else if (! strcasecmp(name, "attribute"))
+ return SDB_ATTRIBUTE;
+ return -1;
+} /* sdb_store_parse_object_type */
+
int
sdb_store_parse_object_type_plural(const char *name)
{