summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c048f2d)
raw | patch | inline | side by side (parent: c048f2d)
author | Florian Forster <ff@octo.it> | |
Wed, 23 Jun 2010 07:08:07 +0000 (09:08 +0200) | ||
committer | Florian Forster <octo@verplant.org> | |
Wed, 23 Jun 2010 07:08:07 +0000 (09:08 +0200) |
src/graph_instance.h | patch | blob | history |
diff --git a/src/graph_instance.h b/src/graph_instance.h
index 1baccc6aad5c25cb61368123b804bfcd52e4601a..b1d2df9c043301ec89838117e2b351cdeb8d8a63 100644 (file)
--- a/src/graph_instance.h
+++ b/src/graph_instance.h
_Bool inst_matches_string (graph_config_t *cfg, graph_instance_t *inst,
const char *term);
+/* Compares the given string with the appropriate field of the selector or, if
+ * the selector field is "/all/", iterates over all the files of the instance
+ * and checks the appropriate field. Returns true if the field of the selector
+ * or of one of the files matches. The string must match entirely but
+ * comparison is done case-insensitive. */
_Bool inst_matches_field (graph_instance_t *inst,
graph_ident_field_t field, const char *field_value);