Add wget command to NSH

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1657 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-03-28 19:49:28 +00:00
parent 6484f2c6bb
commit 540b7c48c9
13 changed files with 265 additions and 30 deletions
+2 -2
View File
@@ -404,7 +404,7 @@ exit:
****************************************************************************/
int wget(FAR const char *url, FAR char *buffer, int buflen,
wget_callback_t callback)
wget_callback_t callback, FAR void *arg)
{
struct sockaddr_in server;
struct wget_s ws;
@@ -559,7 +559,7 @@ int wget(FAR const char *url, FAR char *buffer, int buflen,
{
/* Let the client decide what to do with the received file */
callback(&ws.buffer, ws.offset, ws.datend, &buflen);
callback(&ws.buffer, ws.offset, ws.datend, &buflen, arg);
}
else
{