char params[1024];
char title[1024];
+ if (graph_num_instances (cfg) < 1)
+ return (0);
+
memset (title, 0, sizeof (title));
graph_get_title (cfg, title, sizeof (title));
html_escape_buffer (title, sizeof (title));
*(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)
int graph_compare (graph_config_t *cfg, const graph_ident_t *ident);
+size_t graph_num_instances (graph_config_t *cfg);
+
int graph_sort_instances (graph_config_t *cfg);
int graph_clear_instances (graph_config_t *cfg);