From: Siddhesh P. <sid...@gm...> - 2010-07-12 09:25:23
|
2010/7/12 va <wa1...@12...>: > The function of yahoo_send_file() need 7 parameters, I just don't know what > the structure of the last one, ie, void *data. Please tell me how to use > this function. Thanks a lot. That is something that you can use to pass data across the libyahoo2 calls. The yahoo_send_file uses a callback function (the 6th parameter) to notify the caller when the connection is ready so that the actual file sending can be done. The 7th parameter is then simply sent as the last parameter to that callback. The following file has a sample usage of the file transfer functionality: http://ayttm.git.sourceforge.net/git/gitweb.cgi?p=ayttm/ayttm;a=blob_plain;f=modules/yahoo2/yahoo.c;hb=HEAD -- Siddhesh Poyarekar http://siddhesh.in |