You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2014/09/04 20:00:54 UTC

svn commit: r1622519 - in /qpid/proton/trunk/proton-c: bindings/python/proton.py bindings/ruby/lib/qpid_proton.rb bindings/ruby/lib/qpid_proton/version.rb include/proton/cproton.i

Author: rhs
Date: Thu Sep  4 18:00:53 2014
New Revision: 1622519

URL: http://svn.apache.org/r1622519
Log:
PROTON-651: added version constants for python, php, and ruby bindings

Added:
    qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/version.rb
      - copied, changed from r1622404, qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb
Modified:
    qpid/proton/trunk/proton-c/bindings/python/proton.py
    qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb
    qpid/proton/trunk/proton-c/include/proton/cproton.i

Modified: qpid/proton/trunk/proton-c/bindings/python/proton.py
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/python/proton.py?rev=1622519&r1=1622518&r2=1622519&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/python/proton.py (original)
+++ qpid/proton/trunk/proton-c/bindings/python/proton.py Thu Sep  4 18:00:53 2014
@@ -3638,6 +3638,8 @@ __all__ = [
            "Messenger",
            "MessengerException",
            "ProtonException",
+           "PN_VERSION_MAJOR",
+           "PN_VERSION_MINOR",
            "Receiver",
            "SASL",
            "Sender",

Modified: qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb?rev=1622519&r1=1622518&r2=1622519&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb Thu Sep  4 18:00:53 2014
@@ -20,6 +20,7 @@
 require "cproton"
 require "date"
 
+require "qpid_proton/version"
 require "qpid_proton/described"
 require "qpid_proton/mapping"
 require "qpid_proton/array"

Copied: qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/version.rb (from r1622404, qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb)
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/version.rb?p2=qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/version.rb&p1=qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb&r1=1622404&r2=1622519&rev=1622519&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/version.rb Thu Sep  4 18:00:53 2014
@@ -17,21 +17,13 @@
 # under the License.
 #
 
-require "cproton"
-require "date"
+module Qpid
 
-require "qpid_proton/described"
-require "qpid_proton/mapping"
-require "qpid_proton/array"
-require "qpid_proton/hash"
-require "qpid_proton/exceptions"
-require "qpid_proton/exception_handling"
-require "qpid_proton/filters"
-require "qpid_proton/message_format"
-require "qpid_proton/data"
-require "qpid_proton/message"
-require "qpid_proton/subscription"
-require "qpid_proton/tracker_status"
-require "qpid_proton/tracker"
-require "qpid_proton/selectable"
-require "qpid_proton/messenger"
+  module Proton
+
+    PN_VERSION_MAJOR = Cproton::PN_VERSION_MAJOR
+    PN_VERSION_MINOR = Cproton::PN_VERSION_MINOR
+
+  end
+
+end

Modified: qpid/proton/trunk/proton-c/include/proton/cproton.i
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/include/proton/cproton.i?rev=1622519&r1=1622518&r2=1622519&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/include/proton/cproton.i (original)
+++ qpid/proton/trunk/proton-c/include/proton/cproton.i Thu Sep  4 18:00:53 2014
@@ -31,6 +31,9 @@ typedef long long int int64_t;
 
 %include "proton/import_export.h"
 
+%ignore _PROTON_VERSION_H;
+%include "proton/version.h"
+
 /* We cannot safely just wrap pn_bytes_t but each language binding must have a typemap for it - presumably to a string type */
 %ignore pn_bytes_t;
 



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