Author: gsim Date: Fri Oct 10 12:41:59 2014 New Revision: 1630794 URL: http://svn.apache.org/r1630794 Log: PROTON-651: added version constants for python, php, and ruby bindings
Added: qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb - copied, changed from r1630792, qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb Modified: qpid/proton/branches/examples/proton-c/bindings/python/proton.py qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb qpid/proton/branches/examples/proton-c/include/proton/cproton.i 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=1630794&r1=1630793&r2=1630794&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:41:59 2014 @@ -3641,6 +3641,8 @@ __all__ = [ "Messenger", "MessengerException", "ProtonException", + "PN_VERSION_MAJOR", + "PN_VERSION_MINOR", "Receiver", "SASL", "Sender", Modified: qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb?rev=1630794&r1=1630793&r2=1630794&view=diff ============================================================================== --- qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb (original) +++ qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb Fri Oct 10 12:41:59 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/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb (from r1630792, qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb) URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb?p2=qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb&p1=qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb&r1=1630792&r2=1630794&rev=1630794&view=diff ============================================================================== --- qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton.rb (original) +++ qpid/proton/branches/examples/proton-c/bindings/ruby/lib/qpid_proton/version.rb Fri Oct 10 12:41:59 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/branches/examples/proton-c/include/proton/cproton.i URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/include/proton/cproton.i?rev=1630794&r1=1630793&r2=1630794&view=diff ============================================================================== --- qpid/proton/branches/examples/proton-c/include/proton/cproton.i (original) +++ qpid/proton/branches/examples/proton-c/include/proton/cproton.i Fri Oct 10 12:41:59 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-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org