2014-01-17 18:41:41 +00:00
|
|
|
/* ympd
|
2014-02-22 00:57:26 +00:00
|
|
|
(c) 2013-2014 Andrew Karpow <andy@ndyk.de>
|
2014-01-17 18:41:41 +00:00
|
|
|
This project's homepage is: http://www.ympd.org
|
2014-02-22 00:57:26 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2014-01-17 18:41:41 +00:00
|
|
|
*/
|
|
|
|
|
2014-01-08 01:23:02 +00:00
|
|
|
#ifndef __HTTP_SERVER_H__
|
|
|
|
#define __HTTP_SERVER_H__
|
|
|
|
|
2014-02-16 18:46:53 +00:00
|
|
|
#include "mongoose.h"
|
|
|
|
|
2014-03-08 19:32:54 +00:00
|
|
|
struct embedded_file {
|
|
|
|
const char *name;
|
|
|
|
const unsigned char *data;
|
|
|
|
const char *mimetype;
|
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
|
|
|
|
const struct embedded_file *find_embedded_file(const char *name);
|
2014-02-16 18:46:53 +00:00
|
|
|
int callback_http(struct mg_connection *c);
|
2013-11-09 01:07:03 +00:00
|
|
|
|
2014-01-08 01:23:02 +00:00
|
|
|
#endif
|
|
|
|
|