Made the webserver logging follow the popular pattern of foo_???() being declared in foo.h and defined in foo.c.
This commit is contained in:
parent
ca2add3641
commit
2662a31d30
6 changed files with 29 additions and 28 deletions
|
@ -29,10 +29,13 @@
|
|||
*
|
||||
* This file is part of the Contiki desktop environment for the C64.
|
||||
*
|
||||
* $Id: webserver.c,v 1.2 2006/08/09 16:13:39 bg- Exp $
|
||||
* $Id: webserver.c,v 1.3 2007/04/23 21:19:55 oliverschmidt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "contiki.h"
|
||||
#include "ctk/ctk.h"
|
||||
|
||||
|
@ -40,9 +43,6 @@
|
|||
#include "webserver.h"
|
||||
#include "httpd.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* The main window. */
|
||||
static struct ctk_window mainwindow;
|
||||
|
||||
|
@ -60,7 +60,6 @@ static struct ctk_label loglabel =
|
|||
/*-----------------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(webserver_process, ev, data)
|
||||
{
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
ctk_window_new(&mainwindow, LOG_WIDTH, LOG_HEIGHT+1, "Web server");
|
||||
|
@ -89,7 +88,7 @@ PROCESS_THREAD(webserver_process, ev, data)
|
|||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
httpd_log_file(uip_ipaddr_t *requester, char *file)
|
||||
webserver_log_file(uip_ipaddr_t *requester, char *file)
|
||||
{
|
||||
int size;
|
||||
|
||||
|
@ -112,7 +111,7 @@ httpd_log_file(uip_ipaddr_t *requester, char *file)
|
|||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
httpd_log(char *msg)
|
||||
webserver_log(char *msg)
|
||||
{
|
||||
/* Scroll previous entries upwards */
|
||||
memcpy(log, &log[LOG_WIDTH], LOG_WIDTH * (LOG_HEIGHT - 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue