index 52848a71d948954f3a9bceebe970f2520f6d68c9..1a8e48e47dc4db49cfb243d825bd33910f9125f4 100644 (file)
sdb_time_t end;
sdb_data_point_t **data;
- char **data_names;
size_t data_len;
+ char **data_names;
+ size_t data_names_len;
} sdb_timeseries_t;
/*
sdb_time_t end;
} sdb_timeseries_opts_t;
+/*
+ * sdb_timeseries_create:
+ * Allocate a time-series object, pre-populating the data_names information
+ * and allocating the data field.
+ *
+ * Returns:
+ * - a newly allocated time-series object on success
+ * - NULL else
+ */
+sdb_timeseries_t *
+sdb_timeseries_create(size_t data_names_len, const char * const *data_names,
+ size_t data_len);
+
/*
* sdb_timeseries_destroy:
* Destroy a time-series object, freeing all of its memory.