blob: e4062ecb61607c3ce0e9638b37ebfc259c2fc8e6 [file] [log] [blame]
adamdunkelsa2f3c422004-09-12 20:24:53 +00001/*
2 * Copyright (c) 2004, 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 copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the Institute nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * This file is part of the Contiki operating system.
30 *
31 * Author: Adam Dunkels <adam@sics.se>
32 *
33 * $Id: html-strings.c,v 1.3 2004/09/12 20:24:54 adamdunkels Exp $
34 */
adamdunkels2c488822003-09-04 19:32:13 +000035const char html_slasha[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000036/* "/a\0" */
37{0x2f, 0x61, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000038const char html_slashcenter[9] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000039/* "/center\0" */
40{0x2f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000041const char html_slashform[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000042/* "/form\0" */
43{0x2f, 0x66, 0x6f, 0x72, 0x6d, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000044const char html_slashh[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000045/* "/h\0" */
46{0x2f, 0x68, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000047const char html_slashscript[9] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000048/* "/script\0" */
49{0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000050const char html_slashselect[9] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000051/* "/select\0" */
52{0x2f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000053const char html_slashstyle[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000054/* "/style\0" */
55{0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000056const char html_a[3] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000057/* "a\0" */
58{0x61, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000059const char html_body[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000060/* "body\0" */
61{0x62, 0x6f, 0x64, 0x79, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000062const char html_br[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000063/* "br\0" */
64{0x62, 0x72, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000065const char html_center[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000066/* "center\0" */
67{0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000068const char html_form[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000069/* "form\0" */
70{0x66, 0x6f, 0x72, 0x6d, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000071const char html_frame[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000072/* "frame\0" */
73{0x66, 0x72, 0x61, 0x6d, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000074const char html_h1[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000075/* "h1\0" */
76{0x68, 0x31, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000077const char html_h2[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000078/* "h2\0" */
79{0x68, 0x32, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000080const char html_h3[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000081/* "h3\0" */
82{0x68, 0x33, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000083const char html_h4[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000084/* "h4\0" */
85{0x68, 0x34, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000086const char html_img[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000087/* "img\0" */
88{0x69, 0x6d, 0x67, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000089const char html_input[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000090/* "input\0" */
91{0x69, 0x6e, 0x70, 0x75, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000092const char html_li[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000093/* "li\0" */
94{0x6c, 0x69, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000095const char html_p[3] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000096/* "p\0" */
97{0x70, 00, };
adamdunkels2c488822003-09-04 19:32:13 +000098const char html_script[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +000099/* "script\0" */
100{0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000101const char html_select[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000102/* "select\0" */
103{0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000104const char html_style[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000105/* "style\0" */
106{0x73, 0x74, 0x79, 0x6c, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000107const char html_tr[4] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000108/* "tr\0" */
109{0x74, 0x72, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000110const char html_href[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000111/* "href\0" */
112{0x68, 0x72, 0x65, 0x66, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000113const char html_alt[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000114/* "alt\0" */
115{0x61, 0x6c, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000116const char html_src[5] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000117/* "src\0" */
118{0x73, 0x72, 0x63, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000119const char html_type[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000120/* "type\0" */
121{0x74, 0x79, 0x70, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000122const char html_submit[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000123/* "submit\0" */
124{0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000125const char html_value[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000126/* "value\0" */
127{0x76, 0x61, 0x6c, 0x75, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000128const char html_action[8] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000129/* "action\0" */
130{0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000131const char html_name[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000132/* "name\0" */
133{0x6e, 0x61, 0x6d, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000134const char html_text[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000135/* "text\0" */
136{0x74, 0x65, 0x78, 0x74, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000137const char html_size[6] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000138/* "size\0" */
139{0x73, 0x69, 0x7a, 0x65, 00, };
adamdunkels2c488822003-09-04 19:32:13 +0000140const char html_image[7] =
adamdunkelsca9ddcb2003-03-19 14:13:31 +0000141/* "image\0" */
142{0x69, 0x6d, 0x61, 0x67, 0x65, 00, };