From 53d01f6fb437ff2fc87157f71cb007486d8956ea Mon Sep 17 00:00:00 2001
From: Andrew Johnson
Date: Wed, 3 Jun 2015 00:15:39 -0500
Subject: [PATCH] Show how to make time providers backwards-compatible
---
documentation/RELEASE_NOTES.html | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html
index 48dacb281..5a3f74280 100644
--- a/documentation/RELEASE_NOTES.html
+++ b/documentation/RELEASE_NOTES.html
@@ -29,6 +29,19 @@ it in source code will no longer compile. The identifier epicsTimeOK still exist
and has the value 0 as before, so most code that uses these APIs can be changed in
a way that is backwards-compatible with the previous return status.
+Time providers that have to return a status value and still need to be built
+with earlier versions of Base can define the necessary status symbols like this:
+
+
+#include "epicsTime.h"
+
+#ifndef M_time
+/* S_time_... status values were not provided before Base 3.16 */
+#define S_time_unsynchronized epicsTimeERROR
+#define S_time_...whatever... epicsTimeERROR
+#endif
+
+
Callback subsystem API
Added a new macro callbackGetPriority(prio, callback) to the