graph.[ch]: Implement "graph_get_rrdargs".
[collection4.git] / graph_def.c
index 71ba1bd..a5511f6 100644 (file)
@@ -3,6 +3,7 @@
 #include <errno.h>
 
 #include "graph_def.h"
+#include "graph.h"
 #include "graph_config.h"
 #include "common.h"
 #include "oconfig.h"
@@ -79,10 +80,10 @@ static graph_def_t *def_config_get_obj (graph_config_t *cfg, /* {{{ */
   graph_def_t *def;
   int i;
 
-  ident = gl_graph_get_selector (cfg);
+  ident = graph_get_selector (cfg);
   if (ident == NULL)
   {
-    fprintf (stderr, "def_config_get_obj: gl_graph_get_selector failed");
+    fprintf (stderr, "def_config_get_obj: graph_get_selector failed");
     return (NULL);
   }
 
@@ -134,7 +135,7 @@ graph_def_t *def_create (graph_config_t *cfg, graph_ident_t *ident, /* {{{ */
   if ((cfg == NULL) || (ident == NULL) || (ds_name == NULL))
     return (NULL);
 
-  selector = gl_graph_get_selector (cfg);
+  selector = graph_get_selector (cfg);
   if (selector == NULL)
     return (NULL);
 
@@ -217,7 +218,7 @@ int def_config (graph_config_t *cfg, const oconfig_item_t *ci) /* {{{ */
           child->key);
   }
 
-  return (gl_graph_add_def (cfg, def));
+  return (graph_add_def (cfg, def));
 } /* }}} int def_config */
 
 int def_append (graph_def_t *head, graph_def_t *def) /* {{{ */