share/collection.conf: Fix the DSName of "ping".
[collection4.git] / src / data_provider.h
index 30f3670..08cff9a 100644 (file)
@@ -39,15 +39,16 @@ struct dp_data_point_s
 typedef struct dp_data_point_s dp_data_point_t;
 
 /* Callback passed to the "get_idents" function. */
-typedef int (*dp_get_idents_callback) (const graph_ident_t *, void *);
+typedef int (*dp_get_idents_callback) (graph_ident_t *, void *);
 
 /* Callback passed to the "get_ident_ds_names" function. */
-typedef int (*dp_list_get_ident_ds_names_callback) (const graph_ident_t *,
+typedef int (*dp_list_get_ident_ds_names_callback) (graph_ident_t *,
     const char *ds_name, void *);
 
 /* Callback passed to the "get_ident_data" function. */
 typedef int (*dp_get_ident_data_callback) (graph_ident_t *, const char *ds_name,
-    const dp_data_point_t *dp, size_t dp_num,
+    dp_time_t first_value_time, dp_time_t interval,
+    size_t data_points_num, double *data_points,
     void *);
 
 struct data_provider_s