From: Mike Taylor Date: Thu, 12 Oct 2006 14:35:43 +0000 (+0000) Subject: irspy_connect() and irspy_search_pqf() have new $udata parameter. X-Git-Tag: CPAN-v1.02~982 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=78ebddb108c860c67303b60d8361af87563a0d06;p=irspy-moved-to-github.git irspy_connect() and irspy_search_pqf() have new $udata parameter. This is passed into their task constructors. --- diff --git a/lib/ZOOM/IRSpy/Connection.pm b/lib/ZOOM/IRSpy/Connection.pm index 7923893..656bd3b 100644 --- a/lib/ZOOM/IRSpy/Connection.pm +++ b/lib/ZOOM/IRSpy/Connection.pm @@ -1,4 +1,4 @@ -# $Id: Connection.pm,v 1.2 2006-10-11 16:46:01 mike Exp $ +# $Id: Connection.pm,v 1.3 2006-10-12 14:35:43 mike Exp $ package ZOOM::IRSpy::Connection; @@ -104,18 +104,20 @@ sub log { sub irspy_connect { my $this = shift(); - my(%cb) = @_; + my($udata, %cb) = @_; - $this->add_task(new ZOOM::IRSpy::Task::Connect($this, %cb)); + my $task = new ZOOM::IRSpy::Task::Connect($this, $udata, %cb); + $this->add_task($task); $this->log("irspy", "registered connect()"); } sub irspy_search_pqf { my $this = shift(); - my($query, %cb) = @_; + my($query, $udata, %cb) = @_; - $this->add_task(new ZOOM::IRSpy::Task::Search($query, $this, %cb)); + my $task = new ZOOM::IRSpy::Task::Search($query, $this, $udata, %cb); + $this->add_task($task); $this->log("irspy", "registered search_pqf($query)"); }