add syntax and scaffolding for MIDI binding maps to refer to selected tracks/busses.
[ardour.git] / libs / pbd / pbd / windows_timer_utils.h
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