[SCM] Debian packaging of libzeromq-perl branch, master, updated. debian/0.16-1-4-g7f5d122
Alessandro Ghedini
al3xbio at gmail.com
Fri Sep 9 15:22:00 UTC 2011
The following commit has been merged in the master branch:
commit db3e9dbd30467167410cc5496dd0888718d91c3e
Author: Alessandro Ghedini <al3xbio at gmail.com>
Date: Fri Sep 9 16:47:20 2011 +0200
Imported Upstream version 0.17
diff --git a/Changes b/Changes
index 67d92ae..2fd4381 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
Changelog for Perl module ZeroMQ.
+0.17 Fri Sep 09 2011 12:40 JST
+ - Add support for ZMQ_LINGER in setsockopt (sebnow)
+ https://github.com/lestrrat/ZeroMQ-Perl/pull/19
+
0.16 Sat Jul 23 2011 08:00 JST
- Fix memory leaks
* rt #69572
diff --git a/META.yml b/META.yml
index dc0c56f..bb739ae 100644
--- a/META.yml
+++ b/META.yml
@@ -38,4 +38,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: http://github.com/lestrrat/ZeroMQ-Perl
-version: 0.16
+version: 0.17
diff --git a/lib/ZeroMQ.pm b/lib/ZeroMQ.pm
index cc51803..79184ed 100644
--- a/lib/ZeroMQ.pm
+++ b/lib/ZeroMQ.pm
@@ -1,7 +1,7 @@
package ZeroMQ;
use strict;
BEGIN {
- our $VERSION = '0.16';
+ our $VERSION = '0.17';
our @ISA = qw(Exporter);
}
use ZeroMQ::Raw ();
diff --git a/lib/ZeroMQ/Raw.pm b/lib/ZeroMQ/Raw.pm
index fcf4b21..76933bc 100644
--- a/lib/ZeroMQ/Raw.pm
+++ b/lib/ZeroMQ/Raw.pm
@@ -7,7 +7,7 @@ BEGIN {
# XXX it's a hassle, but keep it in sync with ZeroMQ.pm
# by loading this here, we can make ZeroMQ::Raw independent
# of ZeroMQ while keeping the dist name as ZeroMQ
- XSLoader::load('ZeroMQ', '0.16');
+ XSLoader::load('ZeroMQ', '0.17');
}
our @EXPORT = qw(
diff --git a/xs/perl_zeromq.xs b/xs/perl_zeromq.xs
index 8cca027..fe2db38 100644
--- a/xs/perl_zeromq.xs
+++ b/xs/perl_zeromq.xs
@@ -1,4 +1,3 @@
-
#include "perl_zeromq.h"
#include "xshelper.h"
@@ -539,6 +538,7 @@ PerlZMQ_Raw_zmq_setsockopt(sock, option, value)
const char *ptr;
uint64_t u64;
int64_t i64;
+ int i;
CODE:
switch(option){
case ZMQ_IDENTITY:
@@ -564,6 +564,11 @@ PerlZMQ_Raw_zmq_setsockopt(sock, option, value)
RETVAL = zmq_setsockopt(sock, option, &u64, sizeof(uint64_t));
break;
+ case ZMQ_LINGER:
+ i = SvIV(value);
+ RETVAL = zmq_setsockopt(sock, option, &i, sizeof(i));
+ break;
+
default:
warn("Unknown sockopt type %d, assuming string. Send patch", option);
ptr = SvPV(value, len);
--
Debian packaging of libzeromq-perl
More information about the Pkg-perl-cvs-commits
mailing list