[Gtkhx-dev] GtkHx File Transfers
Brought to you by:
mishan
From: Misha N. <mi...@na...> - 2001-11-14 19:53:01
|
Hi, I've just cleaned up the file transfer code quite a bit. It now uses pthreads and no longer uses the pipe() method for file update information; I just have the thread call the file_update function itself, with appropriate gtk_threads wrappers, of course. Also, I've began adding preliminary file preview code. I added a rather large comment in xfers.c explaining how it should work: /* XXX: we need some kind of plugin schematic where a plugin registers itself for a given creator/type and the preview function looks for a plugin to match the file it is about to download and loads a session with a plugin, if such a plugin exists, passes it on to here so that here we can pass the data into that session, otherwise we tell the user that no plugin exists for such data. we must also take into consideration that the person may be viewing some large file. do we want to keep this in memory or save to /tmp? */ One may fear bloat in this situation, like HL Comm's client, but I am keeping the client bloat-free by having all the viewers be in separate plugins. -- Misha Nasledov mi...@na... http://nasledov.com/misha/ |