From: mike Date: Wed, 9 Nov 2005 17:08:03 +0000 (+0000) Subject: Support for ScanSet options. X-Git-Tag: cpan_1_22~366 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=5b9518b8d0aa435e6d19021c039a7f66406da676;p=ZOOM-Perl-moved-to-github.git Support for ScanSet options. --- diff --git a/lib/ZOOM.pm b/lib/ZOOM.pm index 886d5ae..523d73c 100644 --- a/lib/ZOOM.pm +++ b/lib/ZOOM.pm @@ -1,4 +1,4 @@ -# $Id: ZOOM.pm,v 1.16 2005-11-08 16:42:08 mike Exp $ +# $Id: ZOOM.pm,v 1.17 2005-11-09 17:08:03 mike Exp $ use strict; use warnings; @@ -714,6 +714,17 @@ sub _ss { return $_ss; } +sub option { + my $this = shift(); + my($key, $value) = @_; + + my $oldval = Net::Z3950::ZOOM::scanset_option_get($this->_ss(), $key); + Net::Z3950::ZOOM::scanset_option_set($this->_ss(), $key, $value) + if defined $value; + + return $oldval; +} + sub size { my $this = shift();