From: Mike Taylor Date: Tue, 1 May 2007 15:32:51 +0000 (+0000) Subject: Add general irspy_search() function. X-Git-Tag: CPAN-v1.02~54^2~396 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=9a26de6de61feb7e4e7850b3ded54bc1501d34ed;p=irspy-moved-to-github.git Add general irspy_search() function. irspy_search_pqf() refactored as trivial wrapper. --- diff --git a/lib/ZOOM/IRSpy/Connection.pm b/lib/ZOOM/IRSpy/Connection.pm index a932cde..8d77f5f 100644 --- a/lib/ZOOM/IRSpy/Connection.pm +++ b/lib/ZOOM/IRSpy/Connection.pm @@ -1,4 +1,4 @@ -# $Id: Connection.pm,v 1.13 2007-04-30 11:28:04 mike Exp $ +# $Id: Connection.pm,v 1.14 2007-05-01 15:32:51 mike Exp $ package ZOOM::IRSpy::Connection; @@ -132,12 +132,19 @@ sub irspy_connect { } -sub irspy_search_pqf { +sub irspy_search { my $this = shift(); - my($query, $udata, $options, %cb) = @_; + my($qtype, $qstr, $udata, $options, %cb) = @_; $this->add_task(new ZOOM::IRSpy::Task::Search - ($query, $this, $udata, $options, %cb)); + ($qtype, $qstr, $this, $udata, $options, %cb)); +} + + +# Wrapper for backwards compatibility +sub irspy_search_cql { + my $this = shift(); + return $this->irspy_search("pqf", @_); }