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>2023-10-18 13:46:50 +0200
commit9ba80f8c08dbfbf1b4eafa8fcb40001a55bbbf0e (patch)
treeaa806a2ccb82a899c30d9dbfc7a10e055648734b /src/lib/config.h
parent9b3b2b5014c08ba5667ef4072b90e93a542b35d0 (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 0c9affbb6..9aba9e9d2 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -618,7 +618,7 @@ public:
return _allow_smpte_bv20;
}
- std::string gpu_binary_location () const {
+ boost::filesystem::path gpu_binary_location() const {
return _gpu_binary_location;
}
@@ -1220,24 +1220,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);
}
@@ -1485,7 +1492,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;