summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-17 11:53:28 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-18 23:30:48 +0100
commitcf4e4272f72346c39964b128f78b2297f04dba55 (patch)
tree380d760483d5bf2cec0e33db42e82207b387ecb4 /src/util.h
parentb0b3c6f0cdc034ef515f72d72fd72fbb71d1ca63 (diff)
Tidy how we're finding the tags and xsd directories.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index d6803cdf..aa26bfaf 100644
--- a/src/util.h
+++ b/src/util.h
@@ -94,8 +94,8 @@ extern std::string remove_urn_uuid (std::string raw);
* by client applications.
*
* @param tags_directory Path to a copy of the tags directory from the source code;
- * if none is specified libdcp will look for a tags directory inside the environment
- * variable LIBDCP_SHARE_PREFIX or the LIBDCP_SHARE_PREFIX #defined during the build.
+ * if none is specified libdcp will look for a tags directory in the environment
+ * variable LIBDCP_RESOURCES or based on where the current executable is.
*/
extern void init (boost::optional<boost::filesystem::path> tags_directory = boost::optional<boost::filesystem::path>());
@@ -150,6 +150,9 @@ extern std::string unique_string (std::vector<std::string> existing, std::string
extern ASDCP::Dictionary const* asdcp_smpte_dict;
+extern boost::filesystem::path directory_containing_executable ();
+extern boost::filesystem::path resources_directory ();
+
class ASDCPErrorSuspender
{