### Eclipse Workspace Patch 1.0 #P ecos Index: net/athttpd/current/doc/athttpd.sgml =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/athttpd/current/doc/athttpd.sgml,v retrieving revision 1.4 diff -u -r1.4 athttpd.sgml --- net/athttpd/current/doc/athttpd.sgml 27 Nov 2006 15:41:56 -0000 1.4 +++ net/athttpd/current/doc/athttpd.sgml 12 Nov 2007 10:46:26 -0000 @@ -146,11 +146,12 @@ url_string : a string with the extension url that will be appended to the default directory. callback : a function with a prototype: - cyg_int32 callback_function(CYG_HTTPS_STATE*); + cyg_int32 callback_function(CYG_HTTPD_STATE*); + Return value is ignored - just return 0. -CYG_HTTPS_STATE* is a pointer to a structure that +CYG_HTTPD_STATE* is a pointer to a structure that contains, among others, a buffer (outbuffer) that can be used to send data out. The definitions of the structure is in http.h. @@ -167,7 +168,7 @@ and somewhere in the source tree there is a function: -cyg_int32 myForm(CYG_HTTPS_STATE* p) +cyg_int32 myForm(CYG_HTTPD_STATE* p) { cyg_httpd_start_chunked("html"); strcpy(p->outbuffer, "eCos Web Server"); @@ -276,11 +277,11 @@ and tries to execute a function inside the library with the following prototype: -void exec_cgi(CYG_HTTPS_STATE *) +void exec_cgi(CYG_HTTPD_STATE *) -The pointer CYG_HTTPS_STATE* gives access to the socket +The pointer CYG_HTTPD_STATE* gives access to the socket data: The user will use this pointer to access the 'outbuffer' and use it to copy data to send data out. Index: net/athttpd/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos-opt/net/net/athttpd/current/ChangeLog,v retrieving revision 1.6 diff -u -r1.6 ChangeLog --- net/athttpd/current/ChangeLog 4 Dec 2006 20:35:30 -0000 1.6 +++ net/athttpd/current/ChangeLog 12 Nov 2007 10:46:26 -0000 @@ -1,3 +1,8 @@ +2007-11-12 Oyvind Harboe + + * doc/athttpd.cdl: Fixed typos in doc. Return value from handler is not + used, recommend returning 0 in doc. + 2006-12-03 Anthony Tonizzo * cdl/httpd.cdl: Corrected a CDL error in the requirements of