summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06793c7)
raw | patch | inline | side by side (parent: 06793c7)
author | Florian Forster <ff@octo.it> | |
Wed, 7 Jul 2010 15:24:01 +0000 (17:24 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 7 Jul 2010 15:24:01 +0000 (17:24 +0200) |
src/graph_instance.c | patch | blob | history | |
src/graph_instance.h | patch | blob | history |
diff --git a/src/graph_instance.c b/src/graph_instance.c
index 0b71e15e1fdf897ba2a8e477533092c7ff3eebea..93fc3c58cadd80ef4f50d6016b460469f0c28647 100644 (file)
--- a/src/graph_instance.c
+++ b/src/graph_instance.c
return (0);
} /* }}} int inst_get_params */
+int inst_compare (const graph_instance_t *i0, /* {{{ */
+ const graph_instance_t *i1)
+{
+ return (ident_compare (i0->select, i1->select));
+} /* }}} int inst_compare */
+
int inst_compare_ident (graph_instance_t *inst, /* {{{ */
const graph_ident_t *ident)
{
diff --git a/src/graph_instance.h b/src/graph_instance.h
index cca55dcbd136ca60349a324232cf6b8038a1521a..249fe4d2c77d5f2a90131f7b66bd88b2254063a7 100644 (file)
--- a/src/graph_instance.h
+++ b/src/graph_instance.h
graph_ident_t *inst_get_selector (graph_instance_t *inst);
+int inst_compare (const graph_instance_t *i0, const graph_instance_t *i1);
+
int inst_compare_ident (graph_instance_t *inst, const graph_ident_t *ident);
/* Returns true if "ident" matches the instance's selector. */