diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 19:49:28 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 19:49:28 +0000 |
commit | 4d94719cf982033183a5d641ef741f5e229d212d (patch) | |
tree | 6e4e30215926ce1f068e9e7738a470fc7dea18a1 /nuttx/include | |
parent | 305d77e4688822294cd49112b4d8d73c48619979 (diff) | |
download | px4-nuttx-4d94719cf982033183a5d641ef741f5e229d212d.tar.gz px4-nuttx-4d94719cf982033183a5d641ef741f5e229d212d.tar.bz2 px4-nuttx-4d94719cf982033183a5d641ef741f5e229d212d.zip |
Add wget command to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1657 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/net/uip/webclient.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/include/net/uip/webclient.h b/nuttx/include/net/uip/webclient.h index 053dd5613..13787e2db 100644 --- a/nuttx/include/net/uip/webclient.h +++ b/nuttx/include/net/uip/webclient.h @@ -96,7 +96,7 @@ */ typedef void (*wget_callback_t)(FAR char **buffer, int offset, - int datend, FAR int *buflen); + int datend, FAR int *buflen, FAR void *arg); /**************************************************************************** * Public Function Prototypes @@ -130,6 +130,7 @@ extern "C" { * buflen - The size of the user provided buffer * callback - As data is obtained from the host, this function is * to dispose of each block of file data as it is received. + * arg - User argument passed to callback. * * Returned Value: * 0: if the GET operation completed successfully; @@ -138,7 +139,7 @@ extern "C" { ****************************************************************************/ EXTERN int wget(FAR const char *url, FAR char *buffer, int buflen, - wget_callback_t callback); + wget_callback_t callback, FAR void *arg); #undef EXTERN #ifdef __cplusplus |