projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/graph_instance.[ch]: Implement "inst_ident_matches" in addition to "inst_matches_...
[collection4.git]
/
src
/
graph_instance.c
diff --git
a/src/graph_instance.c
b/src/graph_instance.c
index
2d12873
..
5431589
100644
(file)
--- a/
src/graph_instance.c
+++ b/
src/graph_instance.c
@@
-419,13
+419,22
@@
int inst_compare_ident (graph_instance_t *inst, /* {{{ */
return (ident_compare (inst->select, ident));
} /* }}} int inst_compare_ident */
return (ident_compare (inst->select, ident));
} /* }}} int inst_compare_ident */
-_Bool inst_
matches_ident
(graph_instance_t *inst, /* {{{ */
+_Bool inst_
ident_matches
(graph_instance_t *inst, /* {{{ */
const graph_ident_t *ident)
{
if ((inst == NULL) || (ident == NULL))
return (0);
return (ident_matches (inst->select, ident));
const graph_ident_t *ident)
{
if ((inst == NULL) || (ident == NULL))
return (0);
return (ident_matches (inst->select, ident));
+} /* }}} _Bool inst_ident_matches */
+
+_Bool inst_matches_ident (graph_instance_t *inst, /* {{{ */
+ const graph_ident_t *ident)
+{
+ if ((inst == NULL) || (ident == NULL))
+ return (0);
+
+ return (ident_matches (ident, inst->select));
} /* }}} _Bool inst_matches_ident */
_Bool inst_matches_string (graph_config_t *cfg, /* {{{ */
} /* }}} _Bool inst_matches_ident */
_Bool inst_matches_string (graph_config_t *cfg, /* {{{ */