X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_instance.c;fp=src%2Fgraph_instance.c;h=5431589cfa9f4ed4f1c3074c8734f0065f8cc7be;hb=95cad1f9e58e9f1a5480e62fc2cdd2c3de33a863;hp=2d12873e7624b037852bc40e685ed7ff2b0bb711;hpb=7d659a7188dd2012d9e7a90168750757b4ef97ba;p=collection4.git diff --git a/src/graph_instance.c b/src/graph_instance.c index 2d12873..5431589 100644 --- 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 */ -_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)); +} /* }}} _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, /* {{{ */