]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/util.hxx
Merge branch 'jt/runway' into next
[flightgear.git] / src / Main / util.hxx
index a3dba939abc2783455affea66dd867b5bf25c307..70067d3e34dcc8eb2dcca6191053137c119b3796 100644 (file)
@@ -74,4 +74,21 @@ extern void fgExit (int status = 0);
 extern double fgGetLowPass (double current, double target, double timeratio);
 
 
+/**
+ * Unescape string.
+ *
+ * @param str String possibly containing escaped characters.
+ * @return string with escaped characters replaced by single character values.
+ */
+extern std::string fgUnescape (const char *str);
+
+
+/**
+ * Validation listener interface for io.nas, used by fgcommands.
+ * @param path Path to be validated
+ * @param write True for write operations and false for read operations.
+ * @return The validated path on success or 0 if access denied.
+ */
+extern const char *fgValidatePath (const char *path, bool write);
+
 #endif // __UTIL_HXX