You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/10/10 14:46:30 UTC

svn commit: r1630809 - in /qpid/proton/branches/examples: proton-c/bindings/python/proton.py proton-c/bindings/ruby/lib/qpid_proton/version.rb proton-j/src/main/resources/cproton.py

Author: gsim
Date: Fri Oct 10 12:46:30 2014
New Revision: 1630809

URL: http://svn.apache.org/r1630809
Log:
PROTON-651: remove the extraineous 'PN_' if under the proton namespace.

Modified:
    qpid/proton/branches/examples/proton-c/bindings/python/proton.py
    qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb
    qpid/proton/branches/examples/proton-j/src/main/resources/cproton.py

Modified: qpid/proton/branches/examples/proton-c/bindings/python/proton.py
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/bindings/python/proton.py?rev=1630809&r1=1630808&r2=1630809&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/bindings/python/proton.py (original)
+++ qpid/proton/branches/examples/proton-c/bindings/python/proton.py Fri Oct 10 12:46:30 2014
@@ -89,6 +89,8 @@ try:
 except NameError:
   bytes = str
 
+VERSION_MAJOR = PN_VERSION_MAJOR
+VERSION_MINOR = PN_VERSION_MINOR
 API_LANGUAGE = "C"
 IMPLEMENTATION_LANGUAGE = "C"
 
@@ -3641,8 +3643,8 @@ __all__ = [
            "Messenger",
            "MessengerException",
            "ProtonException",
-           "PN_VERSION_MAJOR",
-           "PN_VERSION_MINOR",
+           "VERSION_MAJOR",
+           "VERSION_MINOR",
            "Receiver",
            "SASL",
            "Sender",

Modified: qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb?rev=1630809&r1=1630808&r2=1630809&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb (original)
+++ qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb Fri Oct 10 12:46:30 2014
@@ -21,8 +21,8 @@ module Qpid
 
   module Proton
 
-    PN_VERSION_MAJOR = Cproton::PN_VERSION_MAJOR
-    PN_VERSION_MINOR = Cproton::PN_VERSION_MINOR
+    VERSION_MAJOR = Cproton::PN_VERSION_MAJOR
+    VERSION_MINOR = Cproton::PN_VERSION_MINOR
 
   end
 

Modified: qpid/proton/branches/examples/proton-j/src/main/resources/cproton.py
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-j/src/main/resources/cproton.py?rev=1630809&r1=1630808&r2=1630809&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-j/src/main/resources/cproton.py (original)
+++ qpid/proton/branches/examples/proton-j/src/main/resources/cproton.py Fri Oct 10 12:46:30 2014
@@ -23,6 +23,10 @@ exposed to python via swig. This allows 
 against both the C and Java protocol implementations.
 """
 
+# @todo(kgiusti) dynamically set these via filters in the pom.xml file
+PN_VERSION_MAJOR = 0
+PN_VERSION_MINOR = 0
+
 from cerror import *
 from ccodec import *
 from cengine import *



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org