From 5b9518b8d0aa435e6d19021c039a7f66406da676 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 9 Nov 2005 17:08:03 +0000 Subject: [PATCH] Support for ScanSet options. --- lib/ZOOM.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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(); -- 1.7.10.4