/* * http.h : GeeXboX uShare Web Server handler header. * Originally developped for the GeeXboX project. * Parts of the code are originated from GMediaServer from Oskar Liljeblad. * Copyright (C) 2005-2007 Benjamin Zores * * 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; either version 2 of the License, or * (at your option) any later version. * * 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 Library 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _HTTP_H_ #define _HTTP_H_ #include #include int http_get_info (const char *filename, UpnpFileInfo *info, const void* cookie __attribute__((unused)), const void** requestCookie __attribute__((unused))); UpnpWebFileHandle http_open (const char *filename, enum UpnpOpenFileMode mode, const void* cookie __attribute__((unused)), const void* requestCookie __attribute__((unused))); int http_read (UpnpWebFileHandle fh, char *buf, size_t buflen, const void* cookie __attribute__((unused)), const void* requestCookie __attribute__((unused))); int http_seek (UpnpWebFileHandle fh, off_t offset, int origin, const void* cookie __attribute__((unused)), const void* requestCookie __attribute__((unused))); int http_write (UpnpWebFileHandle fh __attribute__((unused)), char *buf __attribute__((unused)), size_t buflen __attribute__((unused)), const void* cookie __attribute__((unused)), const void* requestCookie __attribute__((unused))); int http_close (UpnpWebFileHandle fh, const void* cookie __attribute__((unused)), const void* requestCookie __attribute__((unused))); #endif /* _HTTP_H_ */