summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-24 17:23:57 +0200
committerCarl Hetherington <cth@carlh.net>2024-01-28 02:01:57 +0100
commit9aca7d85aa86a9232a2cd83e867d679c30487059 (patch)
tree0161617f7c7a3b3b7164eb8e905d89f7d9bbb009 /src/lib/config.h
parent3b1ee8690b21ddc5ff53ba3b2ba50270e3c9f9bf (diff)
Use boost::filesystem::path for gpu_binary_location().
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 527bf4de8..bd040f09a 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -619,7 +619,7 @@ public:
return _allow_smpte_bv20;
}
- std::string gpu_binary_location () const {
+ boost::filesystem::path gpu_binary_location() const {
return _gpu_binary_location;
}
@@ -1221,24 +1221,31 @@ public:
void set_allow_smpte_bv20(bool allow) {
maybe_set(_allow_smpte_bv20, allow, ALLOW_SMPTE_BV20);
}
- void set_gpu_binary_location (std::string location) {
+
+ void set_gpu_binary_location(boost::filesystem::path location) {
maybe_set (_gpu_binary_location, location);
}
+
void set_enable_gpu (bool enable) {
maybe_set (_enable_gpu, enable);
}
+
void set_selected_gpu (int selected) {
maybe_set (_selected_gpu, selected);
}
+
void set_gpu_license_server (std::string s) {
maybe_set (_gpu_license_server, s);
}
+
void set_gpu_license_port (int p) {
maybe_set (_gpu_license_port, p);
}
+
void set_gpu_license (std::string p) {
maybe_set (_gpu_license, p);
}
+
void set_isdcf_name_part_length(int length) {
maybe_set(_isdcf_name_part_length, length, ISDCF_NAME_PART_LENGTH);
}
@@ -1487,7 +1494,7 @@ private:
/* GPU */
bool _enable_gpu;
- std::string _gpu_binary_location;
+ boost::filesystem::path _gpu_binary_location;
int _selected_gpu;
std::string _gpu_license_server;
int _gpu_license_port;