X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph.c;h=9b545fd702922f7c73c45ca63db5cef4396b168a;hb=d57d345c057f784293439936f8a62fe01cffde06;hp=f2699e136982653b7dbc4530e10d0d9ce35bf959;hpb=99bd3da9d9029e2288df1cf5ded1d5755266143d;p=collection4.git diff --git a/src/graph.c b/src/graph.c index f2699e1..9b545fd 100644 --- a/src/graph.c +++ b/src/graph.c @@ -490,6 +490,14 @@ static int graph_sort_instances_cb (const void *v0, const void *v1) /* {{{ */ *(graph_instance_t * const *) v1)); } /* }}} int graph_sort_instances_cb */ +size_t graph_num_instances (graph_config_t *cfg) /* {{{ */ +{ + if (cfg == NULL) + return ((size_t) -1); + + return (cfg->instances_num); +} /* }}} size_t graph_num_instances */ + int graph_sort_instances (graph_config_t *cfg) /* {{{ */ { if (cfg == NULL)