Make sure that those recently moved functions will be visible if they're needed outsi...
authorJohn Emmas <johne53@tiscali.co.uk>
Fri, 18 Sep 2015 09:27:27 +0000 (10:27 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Fri, 18 Sep 2015 09:27:27 +0000 (10:27 +0100)
libs/pbd/pbd/windows_mmcss.h
libs/pbd/pbd/windows_timer_utils.h

index 28dc737c4dc4d77e3713aeeef67598eb60939914..6842cb5ce1d726ec3b65f8a7f06e0a3c714a1aef 100644 (file)
@@ -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
 
index a8772590d7e7354a190ea96aa51ad5ed32a73e10..6f35ba5496527e1231e169840f83b93508f57792 100644 (file)
@@ -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