Fork of Smoothie to port to mbed non-LPC targets.
Fork of Smoothie by
libs/Network/uip/webserver/httpd-fsdata.h@2:1df0b61d3b5a, 2014-02-28 (annotated)
- Committer:
- Michael J. Spencer
- Date:
- Fri Feb 28 18:52:52 2014 -0800
- Revision:
- 2:1df0b61d3b5a
Update to latest Smoothie.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Michael J. Spencer |
2:1df0b61d3b5a | 1 | /* |
Michael J. Spencer |
2:1df0b61d3b5a | 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. |
Michael J. Spencer |
2:1df0b61d3b5a | 3 | * All rights reserved. |
Michael J. Spencer |
2:1df0b61d3b5a | 4 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 5 | * Redistribution and use in source and binary forms, with or without |
Michael J. Spencer |
2:1df0b61d3b5a | 6 | * modification, are permitted provided that the following conditions |
Michael J. Spencer |
2:1df0b61d3b5a | 7 | * are met: |
Michael J. Spencer |
2:1df0b61d3b5a | 8 | * 1. Redistributions of source code must retain the above copyright |
Michael J. Spencer |
2:1df0b61d3b5a | 9 | * notice, this list of conditions and the following disclaimer. |
Michael J. Spencer |
2:1df0b61d3b5a | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
Michael J. Spencer |
2:1df0b61d3b5a | 11 | * notice, this list of conditions and the following disclaimer in the |
Michael J. Spencer |
2:1df0b61d3b5a | 12 | * documentation and/or other materials provided with the distribution. |
Michael J. Spencer |
2:1df0b61d3b5a | 13 | * 3. Neither the name of the Institute nor the names of its contributors |
Michael J. Spencer |
2:1df0b61d3b5a | 14 | * may be used to endorse or promote products derived from this software |
Michael J. Spencer |
2:1df0b61d3b5a | 15 | * without specific prior written permission. |
Michael J. Spencer |
2:1df0b61d3b5a | 16 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
Michael J. Spencer |
2:1df0b61d3b5a | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Michael J. Spencer |
2:1df0b61d3b5a | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
Michael J. Spencer |
2:1df0b61d3b5a | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
Michael J. Spencer |
2:1df0b61d3b5a | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Michael J. Spencer |
2:1df0b61d3b5a | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
Michael J. Spencer |
2:1df0b61d3b5a | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
Michael J. Spencer |
2:1df0b61d3b5a | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
Michael J. Spencer |
2:1df0b61d3b5a | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
Michael J. Spencer |
2:1df0b61d3b5a | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
Michael J. Spencer |
2:1df0b61d3b5a | 27 | * SUCH DAMAGE. |
Michael J. Spencer |
2:1df0b61d3b5a | 28 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 29 | * This file is part of the lwIP TCP/IP stack. |
Michael J. Spencer |
2:1df0b61d3b5a | 30 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 31 | * Author: Adam Dunkels <adam@sics.se> |
Michael J. Spencer |
2:1df0b61d3b5a | 32 | * |
Michael J. Spencer |
2:1df0b61d3b5a | 33 | * $Id: httpd-fsdata.h,v 1.1 2006/06/07 09:13:08 adam Exp $ |
Michael J. Spencer |
2:1df0b61d3b5a | 34 | */ |
Michael J. Spencer |
2:1df0b61d3b5a | 35 | #ifndef __HTTPD_FSDATA_H__ |
Michael J. Spencer |
2:1df0b61d3b5a | 36 | #define __HTTPD_FSDATA_H__ |
Michael J. Spencer |
2:1df0b61d3b5a | 37 | |
Michael J. Spencer |
2:1df0b61d3b5a | 38 | #undef HTTPD_FS_STATISTICS |
Michael J. Spencer |
2:1df0b61d3b5a | 39 | |
Michael J. Spencer |
2:1df0b61d3b5a | 40 | #include "uip.h" |
Michael J. Spencer |
2:1df0b61d3b5a | 41 | |
Michael J. Spencer |
2:1df0b61d3b5a | 42 | |
Michael J. Spencer |
2:1df0b61d3b5a | 43 | struct httpd_fsdata_file { |
Michael J. Spencer |
2:1df0b61d3b5a | 44 | const struct httpd_fsdata_file *next; |
Michael J. Spencer |
2:1df0b61d3b5a | 45 | // const char *name; |
Michael J. Spencer |
2:1df0b61d3b5a | 46 | // const char *data; |
Michael J. Spencer |
2:1df0b61d3b5a | 47 | const unsigned char *name; |
Michael J. Spencer |
2:1df0b61d3b5a | 48 | const unsigned char *data; |
Michael J. Spencer |
2:1df0b61d3b5a | 49 | const int len; |
Michael J. Spencer |
2:1df0b61d3b5a | 50 | #ifdef HTTPD_FS_STATISTICS |
Michael J. Spencer |
2:1df0b61d3b5a | 51 | #if HTTPD_FS_STATISTICS == 1 |
Michael J. Spencer |
2:1df0b61d3b5a | 52 | u16_t count; |
Michael J. Spencer |
2:1df0b61d3b5a | 53 | #endif /* HTTPD_FS_STATISTICS */ |
Michael J. Spencer |
2:1df0b61d3b5a | 54 | #endif /* HTTPD_FS_STATISTICS */ |
Michael J. Spencer |
2:1df0b61d3b5a | 55 | }; |
Michael J. Spencer |
2:1df0b61d3b5a | 56 | |
Michael J. Spencer |
2:1df0b61d3b5a | 57 | struct httpd_fsdata_file_noconst { |
Michael J. Spencer |
2:1df0b61d3b5a | 58 | struct httpd_fsdata_file *next; |
Michael J. Spencer |
2:1df0b61d3b5a | 59 | char *name; |
Michael J. Spencer |
2:1df0b61d3b5a | 60 | char *data; |
Michael J. Spencer |
2:1df0b61d3b5a | 61 | int len; |
Michael J. Spencer |
2:1df0b61d3b5a | 62 | #ifdef HTTPD_FS_STATISTICS |
Michael J. Spencer |
2:1df0b61d3b5a | 63 | #if HTTPD_FS_STATISTICS == 1 |
Michael J. Spencer |
2:1df0b61d3b5a | 64 | u16_t count; |
Michael J. Spencer |
2:1df0b61d3b5a | 65 | #endif /* HTTPD_FS_STATISTICS */ |
Michael J. Spencer |
2:1df0b61d3b5a | 66 | #endif /* HTTPD_FS_STATISTICS */ |
Michael J. Spencer |
2:1df0b61d3b5a | 67 | }; |
Michael J. Spencer |
2:1df0b61d3b5a | 68 | |
Michael J. Spencer |
2:1df0b61d3b5a | 69 | #endif /* __HTTPD_FSDATA_H__ */ |