diff options
author | John Emmas <johne53@tiscali.co.uk> | 2015-09-18 10:27:27 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2015-09-18 10:27:27 +0100 |
commit | d609217c55d93b3e73ab5bad0703f4f122eadaac (patch) | |
tree | 63a02de60f3e06f9c7307f0952d34a02b966e84f /libs/pbd | |
parent | 44ea59495c9c7f2fbb1e898c2d25e637d073b666 (diff) |
Make sure that those recently moved functions will be visible if they're needed outside of libpbd
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/windows_mmcss.h | 12 | ||||
-rw-r--r-- | libs/pbd/pbd/windows_timer_utils.h | 18 |
2 files changed, 17 insertions, 13 deletions
diff --git a/libs/pbd/pbd/windows_mmcss.h b/libs/pbd/pbd/windows_mmcss.h index 28dc737c4d..6842cb5ce1 100644 --- a/libs/pbd/pbd/windows_mmcss.h +++ b/libs/pbd/pbd/windows_mmcss.h @@ -23,6 +23,8 @@ #include <string> +#include "pbd/libpbd_visibility.h" + namespace PBD { namespace MMCSS { @@ -40,15 +42,15 @@ enum error_codes { ERROR_INVALID_TASK_INDEX = 1551 }; -bool initialize (); +bool LIBPBD_API initialize (); -bool deinitialize (); +bool LIBPBD_API deinitialize (); -bool set_thread_characteristics (const std::string& task_name, HANDLE *task_handle); +bool LIBPBD_API set_thread_characteristics (const std::string& task_name, HANDLE *task_handle); -bool revert_thread_characteristics (HANDLE task_handle); +bool LIBPBD_API revert_thread_characteristics (HANDLE task_handle); -bool set_thread_priority (HANDLE, AVRT_PRIORITY); +bool LIBPBD_API set_thread_priority (HANDLE, AVRT_PRIORITY); } // namespace MMCSS diff --git a/libs/pbd/pbd/windows_timer_utils.h b/libs/pbd/pbd/windows_timer_utils.h index a8772590d7..6f35ba5496 100644 --- a/libs/pbd/pbd/windows_timer_utils.h +++ b/libs/pbd/pbd/windows_timer_utils.h @@ -21,6 +21,8 @@ #include <stdint.h> +#include "pbd/libpbd_visibility.h" + namespace PBD { namespace MMTIMERS { @@ -29,13 +31,13 @@ namespace MMTIMERS { * Get the minimum Multimedia Timer resolution as supported by the system * @return true if getting min timer resolution was not successful */ -bool get_min_resolution (uint32_t& timer_resolution_ms); +bool LIBPBD_API get_min_resolution (uint32_t& timer_resolution_ms); /** * Set the minimum Multimedia Timer resolution as supported by the system * @return true if setting min timer resolution was successful */ -bool set_min_resolution (); +bool LIBPBD_API set_min_resolution (); /** * Set current Multimedia Timer resolution. If the timer resolution has already @@ -44,7 +46,7 @@ bool set_min_resolution (); * @return true if setting the timer value was successful, false if setting the * timer resolution failed or the resolution has already been set. */ -bool set_resolution(uint32_t timer_resolution_ms); +bool LIBPBD_API set_resolution(uint32_t timer_resolution_ms); /** * Reset Multimedia Timer resolution. In my testing, if the timer resolution is @@ -53,7 +55,7 @@ bool set_resolution(uint32_t timer_resolution_ms); * even after calling Sleep. * @return true if setting the timer value was successful */ -bool reset_resolution(); +bool LIBPBD_API reset_resolution(); } // namespace MMTIMERS @@ -65,7 +67,7 @@ namespace QPC { * @return true if QPC timer is usable, use check_timer_valid to try to check * if it is monotonic. */ -bool initialize (); +bool LIBPBD_API initialize (); /** * @return true if QueryPerformanceCounter is usable as a timer source @@ -74,7 +76,7 @@ bool initialize (); * timer source. This check is not conclusive and there are probably conditions * under which this check will return true but the timer is not monotonic. */ -bool check_timer_valid (); +bool LIBPBD_API check_timer_valid (); /** * @return the value of the performance counter converted to microseconds @@ -83,7 +85,7 @@ bool check_timer_valid (); * positive value. If QPC is not supported(OS < XP) then -1 is returned but the * MS docs say that this won't occur for systems >= XP. */ -int64_t get_microseconds (); +int64_t LIBPBD_API get_microseconds (); } // namespace QPC @@ -95,7 +97,7 @@ int64_t get_microseconds (); * @return A timer value in microseconds or -1 in the event that the reading * the timer source fails. */ -int64_t get_microseconds (); +int64_t LIBPBD_API get_microseconds (); } // namespace PBD |