summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-09-26 11:13:01 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-09-26 11:16:32 (GMT)
commitecd5608f938835effe1c6058ab100d61219180f0 (patch)
tree41fb7b3e4f460bb521eea7e9176eb81e3423807c /include
parentf007cd2af2835106bfe4ee5baff8f6962dd3f73c (diff)
Added tng_util_num_frames_with_data_of_block_id_get()
The function already existed in the tng_io.c, but has now been exposed through the API. Basic code for testing it was added as well. Version bumped to 1.7.0 Change-Id: Ia276ce3c7c9225f5d0d07eb6e3cd4cea6b882d24
Diffstat (limited to 'include')
-rw-r--r--include/tng/tng_io.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/tng/tng_io.h b/include/tng/tng_io.h
index 367aa29..de4dd32 100644
--- a/include/tng/tng_io.h
+++ b/include/tng/tng_io.h
@@ -4877,6 +4877,19 @@ tng_function_status DECLSPECDLLEXPORT tng_util_prepare_append_after_frame
(tng_trajectory_t tng_data,
const int64_t prev_frame);
+
+/** @brief Get the number of frames containing data of a specific type.
+ * @param tng_data is the trajectory to use.
+ * @param block_id is the id of the block of the data type.
+ * @param n_frames is set to the number of frames containing data of
+ * the requested data type.
+ * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major
+ * error has occured.
+ */
+tng_function_status DECLSPECDLLEXPORT tng_util_num_frames_with_data_of_block_id_get
+ (tng_trajectory_t tng_data,
+ const int64_t block_id,
+ int64_t *n_frames);
/** @} */ /* end of group2 */
contact: Jan Huwald // Impressum