[Pidgin] #13281: purple_xfers_get_handle() with windows 7 not in perl but in c as plugin possible?

Pidgin trac at pidgin.im
Tue Feb 1 09:42:42 EST 2011


#13281: purple_xfers_get_handle() with windows 7 not in perl but in c as plugin
possible?
----------------------------------------------------+-----------------------
 Reporter:  stefanos                                |        Owner:           
     Type:  defect                                  |       Status:  new      
Milestone:                                          |    Component:  libpurple
  Version:  2.7.9                                   |   Resolution:           
 Keywords:  perl filetransfer signals xfers plugin  |  
----------------------------------------------------+-----------------------

Old description:

> I have trouble in perl with purple_xfers_get_handle() is not found the
> function for filetransfer signals but in C is it. Is this
> pidgin/libpurple bug or is this my compile/pc problem?
>
> I use Windows 7 with perl 5.10 (32-Bit) and pidgin 2.7.9/2.7.10dev with
> self compile with mingw (nativ) and the original from pidgin.im
>
> Line in C without errors:
> purple_signal_connect(purple_xfers_get_handle(), "file-recv-request",
> plugin, PURPLE_CALLBACK(file_recv_request_cb), plugin);
>
> and the line in PERL with error:
> Purple::Signal::connect(Purple::xfers::get_handle(), "file-recv-
> request_cb", $plugin, \&file_recv_request_cb);
>
> perl error from debug window:
> Perl function Purple::Script::testplugin::plugin_load exited abnormally:
> Undefined subroutine &Purple::xfers::get_handle
>
> Doc: http://developer.pidgin.im/doxygen/dev/html/xfer-signals.html
> with other signal and connecthandler no errors in perl.

New description:

 I have trouble in perl with purple_xfers_get_handle() is not found the
 function for filetransfer signals but in C is it. Is this pidgin/libpurple
 bug or is this my compile/pc problem?

 I use Windows 7 with perl 5.10 (32-Bit) and pidgin 2.7.9/2.7.10dev with
 self compile with mingw (nativ) and the original from pidgin.im

 Line in C without errors:
 purple_signal_connect(purple_xfers_get_handle(), "file-recv-request",
 plugin, PURPLE_CALLBACK(file_recv_request_cb), plugin);

 and the line in PERL with error:
 Purple::Signal::connect(Purple::xfers::get_handle(), "file-recv-
 request_cb", $plugin, \&file_recv_request_cb);

 perl error from debug window:
 Perl function Purple::Script::testplugin::plugin_load exited abnormally:
 Undefined subroutine &Purple::xfers::get_handle

 Doc: http://developer.pidgin.im/doxygen/dev/html/xfer-signals.html
 with other signal and connecthandler no errors in perl.


 Purple::Xfer::purple_xfers_get_handle

--

Comment(by stefanos):

 ok i have add the follow lines in FT.xs:

 {{{
 Purple::Handle
 purple_xfers_get_handle()
 }}}

 and no error message but the new method is
 Purple::Xfer::purple_xfers_get_handle but i think
 Purple::xfers::get_handle (or Purple::xfer::get_handle) is better (for
 official patch?) but how in FT.xs to correc the name?

-- 
Ticket URL: <http://developer.pidgin.im/ticket/13281#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list