summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-08-29 15:14:28 +0800
committerchenzizhan <[email protected]>2023-08-29 15:14:28 +0800
commita8df66a5c4446d31dbde3e228f79456d78301d3e (patch)
tree731997544c2ca0de7ad75e0a7b60e730ae61f483 /include
parenta1a3eb6c43cca9eb8d3ce83b9dd10c5e4b6100bc (diff)
feat: fieldstat_json_exporter_export_arrayv4.1.3
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat_exporter.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h
index d18d9b0..c1aa994 100644
--- a/include/fieldstat/fieldstat_exporter.h
+++ b/include/fieldstat/fieldstat_exporter.h
@@ -78,13 +78,10 @@ void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter);
Output the fieldstat instance to json string array. User must free the output string.
*/
char *fieldstat_json_exporter_export(const struct fieldstat_json_exporter *exporter);
-void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, char **output, size_t *output_size);
-// for (size_t i = 0; i < output_size; i++)
-// {
-// free(output[i]);
-// }
-// free(output);
-// strlen(output[i]);
+/*
+ after call fieldstat_json_exporter_export_array, user must free the output array and each string.
+*/
+void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, char ***output, size_t *output_size);
#ifdef __cplusplus
}