Author: rhs
Date: Tue Oct 30 00:09:11 2012
New Revision: 1403585
URL: http://svn.apache.org/viewvc?rev=1403585&view=rev
Log:
added missing typedefs for swig interface; fixed UUID tostring
Modified:
qpid/proton/trunk/proton-c/bindings/php/proton.php
qpid/proton/trunk/proton-c/include/proton/cproton.i
Modified: qpid/proton/trunk/proton-c/bindings/php/proton.php
URL:
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/php/proton.php?rev=1403585&r1=1403584&r2=1403585&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/php/proton.php (original)
+++ qpid/proton/trunk/proton-c/bindings/php/proton.php Tue Oct 30 00:09:11 2012
@@ -492,7 +492,11 @@ class UUID {
}
public function __tostring() {
- return "UUID($this->bytes)";
+ $b = $this->bytes;
+ return
sprintf("UUID(%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x)",
+ ord($b[0]), ord($b[1]), ord($b[2]), ord($b[3]),
+ ord($b[4]), ord($b[5]), ord($b[6]), ord($b[7]), ord($b[8]),
ord($b[9]),
+ ord($b[10]), ord($b[11]), ord($b[12]), ord($b[13]),
ord($b[14]), ord($b[15]));
}
}
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=1403585&r1=1403584&r2=1403585&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/include/proton/cproton.i (original)
+++ qpid/proton/trunk/proton-c/include/proton/cproton.i Tue Oct 30 00:09:11 2012
@@ -19,9 +19,12 @@
typedef unsigned int size_t;
typedef signed int ssize_t;
typedef unsigned char uint8_t;
+typedef signed char int8_t;
+typedef unsigned short uint16_t;
+typedef signed short int16_t;
typedef unsigned long int uint32_t;
-typedef unsigned long long int uint64_t;
typedef long int int32_t;
+typedef unsigned long long int uint64_t;
typedef long long int int64_t;
/* Parse these interface header files to generate APIs for script languages */
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]