fileshare/favicon.c

74 lines
4 KiB
C

/*
* vim: sw=2 ts=2 expandtab
*
* "THE PIZZA-WARE LICENSE" (derived from "THE BEER-WARE LICENCE"):
* Thomas Kolb <cfr34k@tkolb.de> wrote this file. As long as you retain this
* notice you can do whatever you want with this stuff. If we meet some day,
* and you think this stuff is worth it, you can buy me a pizza in return.
* - Thomas Kolb
*/
#include <microhttpd.h>
#include "favicon.h"
unsigned char favicon_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x00,
0x04, 0x73, 0x42, 0x49, 0x54, 0x08, 0x08, 0x08, 0x08, 0x7c, 0x08, 0x64,
0x88, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0d,
0xd7, 0x00, 0x00, 0x0d, 0xd7, 0x01, 0x42, 0x28, 0x9b, 0x78, 0x00, 0x00,
0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61,
0x72, 0x65, 0x00, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x6e, 0x6b, 0x73, 0x63,
0x61, 0x70, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x9b, 0xee, 0x3c, 0x1a, 0x00,
0x00, 0x01, 0x86, 0x49, 0x44, 0x41, 0x54, 0x38, 0x4f, 0x7d, 0x8f, 0xbf,
0x4b, 0x02, 0x61, 0x1c, 0x87, 0xbf, 0x4b, 0xb4, 0x05, 0xa2, 0x84, 0x10,
0xe1, 0x52, 0x53, 0xb4, 0x48, 0x04, 0x52, 0x51, 0x46, 0xfd, 0x01, 0xa1,
0x60, 0xd4, 0x72, 0x39, 0x34, 0xb4, 0x24, 0x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xd0, 0x1f, 0x95, 0xfb, 0x0a, 0x57, 0xfe, 0x90, 0xf9, 0xa2, 0xbc,
0x4a, 0x28, 0x2c, 0x10, 0x5c, 0x5e, 0xeb, 0xe8, 0x0d, 0x5d, 0xc3, 0x2e,
0xd4, 0xe4, 0x9a, 0x08, 0x34, 0xf3, 0xba, 0x48, 0x5c, 0x59, 0xf3, 0x2a,
0x4c, 0x38, 0x9a, 0x11, 0xe6, 0x4a, 0x39, 0x64, 0xcf, 0xb2, 0xf0, 0xcf,
0xf9, 0x79, 0x84, 0xed, 0x31, 0xfb, 0xc0, 0x9b, 0x44, 0xdc, 0xa5, 0x09,
0x42, 0x70, 0xe4, 0xd7, 0xd0, 0x52, 0x08, 0x81, 0x48, 0x00, 0xce, 0x21,
0x27, 0x0f, 0x64, 0x0a, 0x99, 0xdf, 0x80, 0x92, 0x61, 0x78, 0x9f, 0x22,
0xc3, 0xc4, 0x98, 0x75, 0xec, 0x86, 0x1d, 0xde, 0x76, 0x48, 0x2b, 0x12,
0x54, 0x55, 0x35, 0x4f, 0xa0, 0x1c, 0x32, 0xd4, 0xc7, 0x89, 0x5b, 0xd1,
0xbe, 0x78, 0x69, 0x63, 0x75, 0x63, 0x1e, 0xca, 0x97, 0x62, 0xdc, 0xb1,
0xfc, 0xc2, 0xd7, 0x3e, 0xc3, 0xe7, 0x00, 0xd9, 0xaa, 0xef, 0x35, 0x63,
0x09, 0xe8, 0x7c, 0xef, 0x32, 0x28, 0xbd, 0x64, 0x52, 0x5f, 0xb3, 0xc3,
0x36, 0xa0, 0xa3, 0x26, 0x18, 0xbe, 0x3b, 0x89, 0xab, 0xbf, 0xb7, 0xa2,
0x65, 0x40, 0x47, 0x5d, 0x67, 0xdc, 0xff, 0xf8, 0x01, 0x31, 0xfd, 0xcd,
0x11, 0xae, 0x58, 0x62, 0xf5, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
0x44, 0xae, 0x42, 0x60, 0x82
};
unsigned int favicon_png_len = 521;
struct MHD_Response* create_favicon_response(void) {
struct MHD_Response *faviconResponse = MHD_create_response_from_data(
favicon_png_len,
(void*)favicon_png,
MHD_NO,
MHD_NO);
MHD_add_response_header(faviconResponse, MHD_HTTP_HEADER_CONTENT_TYPE, "image/png");
return faviconResponse;
}