blob: b32505d36246ec8fa76d018495637b5df40368a1 [file] [log] [blame]
adamdunkels7e4982c2003-03-19 16:26:18 +00001/*
2 * Copyright (c) 2002, Adam Dunkels.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following
12 * disclaimer in the documentation and/or other materials provided
13 * with the distribution.
adamdunkelsfb24dff2004-09-12 14:07:30 +000014 * 3. The name of the author may not be used to endorse or promote
adamdunkels7e4982c2003-03-19 16:26:18 +000015 * products derived from this software without specific prior
16 * written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * This file is part of the Contiki desktop environment
31 *
adamdunkels9d6993d2004-09-19 20:05:40 +000032 * $Id: www-conf.h,v 1.11 2004/09/19 20:05:40 adamdunkels Exp $
adamdunkels7e4982c2003-03-19 16:26:18 +000033 *
34 */
35#ifndef __WWW_CONF_H__
36#define __WWW_CONF_H__
37
adamdunkels0112aa82003-08-29 20:34:54 +000038#define WWW_CONF_HOMEPAGE "http://contiki.c64.org/"
39
adamdunkels9c360cd2003-04-05 11:03:49 +000040/* The size of the HTML viewing area. */
adamdunkels1e2ebda2003-08-24 22:32:23 +000041#define WWW_CONF_WEBPAGE_WIDTH 36
adamdunkels9c360cd2003-04-05 11:03:49 +000042#define WWW_CONF_WEBPAGE_HEIGHT 17
43
44/* The size of the "Back" history. */
adamdunkelsb5bc5e12004-09-12 17:50:02 +000045#define WWW_CONF_HISTORY_SIZE 2
adamdunkels9c360cd2003-04-05 11:03:49 +000046
47/* Defines the maximum length of an URL */
adamdunkelsb5bc5e12004-09-12 17:50:02 +000048#define WWW_CONF_MAX_URLLEN 55
adamdunkels7e4982c2003-03-19 16:26:18 +000049
adamdunkels9c360cd2003-04-05 11:03:49 +000050/* The maxiumum number of widgets (i.e., hyperlinks, form elements) on
51 a page. */
adamdunkels9d6993d2004-09-19 20:05:40 +000052#define WWW_CONF_MAX_NUMPAGEWIDGETS 8
adamdunkels9c360cd2003-04-05 11:03:49 +000053
54/* Turns <center> support on or off; must be on for forms to work. */
adamdunkels9d6993d2004-09-19 20:05:40 +000055#define WWW_CONF_RENDERSTATE 0
adamdunkels9c360cd2003-04-05 11:03:49 +000056
57/* Toggles support for HTML forms. */
adamdunkels9d6993d2004-09-19 20:05:40 +000058#define WWW_CONF_FORMS 0
adamdunkels7e4982c2003-03-19 16:26:18 +000059
adamdunkels9c360cd2003-04-05 11:03:49 +000060/* Maximum lengths for various HTML form parameters. */
adamdunkels0112aa82003-08-29 20:34:54 +000061#define WWW_CONF_MAX_FORMACTIONLEN 30
adamdunkels7e4982c2003-03-19 16:26:18 +000062#define WWW_CONF_MAX_FORMNAMELEN 20
63#define WWW_CONF_MAX_INPUTNAMELEN 20
adamdunkels0112aa82003-08-29 20:34:54 +000064
65#define WWW_CONF_MAX_INPUTVALUELEN (WWW_CONF_WEBPAGE_WIDTH - 1)
adamdunkels7e4982c2003-03-19 16:26:18 +000066
67#endif /* __WWW_CONF_H__ */