diff options
| author | liuxueli <[email protected]> | 2023-08-14 20:10:05 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-08-15 11:06:22 +0800 |
| commit | cabd1347f86a0235ab4b367b1d8a73c0be5ed170 (patch) | |
| tree | f52f9ae03ffeb4c04b198580382dfbe50ade797c /include | |
| parent | cf3f77d5fe9b62df499bd3fafab38eca4f9e5245 (diff) | |
err proc for fieldstat_get_cube_versionv4.0.5
Diffstat (limited to 'include')
| -rw-r--r-- | include/fieldstat/fieldstat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h index 1935cdb..acf086c 100644 --- a/include/fieldstat/fieldstat.h +++ b/include/fieldstat/fieldstat.h @@ -64,7 +64,12 @@ int fieldstat_register_cube(struct fieldstat *instance, const struct fieldstat_t * @return 0 if success. -1 if cube_id is invalid. */ int fieldstat_unregister_cube(struct fieldstat *instance, int cube_id); -unsigned long fieldstat_get_cube_version(const struct fieldstat *instance, int cube_id); + +/* + * @brief get the cube_version of the cube of cube_id. + * @return cube_version if success. -1 if instance is NULL. -2 if cube_id is -1. -3 if the cube_id is invalid(never registered for even once) +*/ +long long fieldstat_get_cube_version(const struct fieldstat *instance, int cube_id); /* * @brief add a metric to the cube of cube_id. One metric may have multiple sub-metric that are associated with different cells. * @param cube_id: cube id, previously returned by fieldstat_register_cube. |
