summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.h
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-02-11 07:26:05 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-02-11 07:26:05 (GMT)
commit8a7c0daaccb5ee837b2a036a9f3cf39a1ca9435e (patch)
treef1ecda43f880cd61fad7ec289c391b807ec50fa2 /src/lib/tng_io.h
parente753a0776bd1496d05e8d191a957e0b2eeb7f019 (diff)
Add getter and setter for output file endianness
Diffstat (limited to 'src/lib/tng_io.h')
-rw-r--r--src/lib/tng_io.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/tng_io.h b/src/lib/tng_io.h
index 031ca65..00110e9 100644
--- a/src/lib/tng_io.h
+++ b/src/lib/tng_io.h
@@ -454,6 +454,31 @@ tng_function_status tng_output_file_set(tng_trajectory_t tng_data,
const char *file_name);
/**
+ * @brief Get the endianness of the output file.
+ * @param tng_data the trajectory of which to get the endianness of the current
+ * output file.
+ * @param endianness will contain the enumeration of the endianness.
+ * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if the endianness
+ * could not be retrieved.
+ */
+tng_function_status tng_output_file_endianness_get
+ (tng_trajectory_t tng_data, tng_file_endianness *endianness);
+
+/**
+ * @brief Set the endianness of the output file.
+ * @param tng_data the trajectory of which to set the endianness of the current
+ * output file.
+ * @param endianness the enumeration of the endianness, can be either
+ * TNG_BIG_ENDIAN (0) or TNG_LITTLE_ENDIAN (1).
+ * @details The endianness cannot be changed after file output has started.
+ * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if the endianness
+ * could not be set.
+ */
+tng_function_status tng_output_file_endianness_set
+ (tng_trajectory_t tng_data,
+ const tng_file_endianness endianness);
+
+/**
* @brief Get the name of the program used when creating the trajectory.
* @param tng_data the trajectory of which to get the program name.
* @param name the string to fill with the name of the program,
contact: Jan Huwald // Impressum