[Pidgin] #9844: Abstract Filetransfer

Pidgin trac at pidgin.im
Sun Aug 9 21:02:31 EDT 2009


#9844: Abstract Filetransfer
------------------------------------+---------------------------------------
 Reporter:  hanzz                   |        Owner:           
     Type:  patch                   |       Status:  new      
Milestone:  Patches Needing Review  |    Component:  libpurple
  Version:  2.5.8                   |   Resolution:           
 Keywords:                          |  
------------------------------------+---------------------------------------

Comment(by darkrain42):

 Hanzz, how does this look? It will require changes to your transport:
   * The UI needs to allocate the buffer in `ui_ops->read`
   * `purple_xfer_ui_ready` is a little more involved
   * Uses signed types instead of unsigned types
   * For read, the transport should return 0 if nothing is available, a
 negative value on error, and should allocate the buffer itself (and free
 it if there's an error). libpurple will cancel the file transfer.

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


More information about the Tracker mailing list