trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1041260 - in /trafficserver/traffic/trunk/proxy: InkAPI.cc api/ts/ts.h.in
Date Thu, 02 Dec 2010 02:50:58 GMT
Author: amc
Date: Thu Dec  2 02:50:58 2010
New Revision: 1041260

URL: http://svn.apache.org/viewvc?rev=1041260&view=rev
Log:
TS-568

Modified:
    trafficserver/traffic/trunk/proxy/InkAPI.cc
    trafficserver/traffic/trunk/proxy/api/ts/ts.h.in

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1041260&r1=1041259&r2=1041260&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Thu Dec  2 02:50:58 2010
@@ -1826,9 +1826,9 @@ TSTrafficServerVersionGet(void)
 {
   return traffic_server_version;
 }
-int INKTrafficServerVersionGetMajor() { return ts_major_version; }
-int INKTrafficServerVersionGetMinor() { return ts_minor_version; }
-int INKTrafficServerVersionGetPatch() { return ts_patch_version; }
+int TSTrafficServerVersionGetMajor() { return ts_major_version; }
+int TSTrafficServerVersionGetMinor() { return ts_minor_version; }
+int TSTrafficServerVersionGetPatch() { return ts_patch_version; }
 
 const char *
 TSPluginDirGet(void)

Modified: trafficserver/traffic/trunk/proxy/api/ts/ts.h.in
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/ts.h.in?rev=1041260&r1=1041259&r2=1041260&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/api/ts/ts.h.in (original)
+++ trafficserver/traffic/trunk/proxy/api/ts/ts.h.in Thu Dec  2 02:50:58 2010
@@ -894,6 +894,30 @@ extern "C"
    */
   tsapi const char *TSTrafficServerVersionGet(void);
 
+  /**  Get the major version of Traffic Server currently running.
+       This is the same as the first element of the string
+       returned by @c TSTrafficServerVersionGet
+
+       @return The major version as an integer.
+   */
+  int TSTrafficServerVersionGetMajor(void);
+
+  /**  Get the minor version of Traffic Server currently running.
+       This is the same as the second element of the string
+       returned by @c TSTrafficServerVersionGet
+
+       @return The minor version as an integer.
+   */
+  int TSTrafficServerVersionGetMinor(void);
+
+  /**  Get the patch version of Traffic Server currently running.
+       This is the same as the third element of the string
+       returned by @c TSTrafficServerVersionGet
+
+       @return The patch version as an integer.
+   */
+  int TSTrafficServerVersionGetPatch(void);
+
   /* --------------------------------------------------------------------------
      Plugin registration */
 



Mime
View raw message