2004-01-28 20:02:12 -05:00
|
|
|
/* Icecast
|
|
|
|
*
|
|
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
|
|
* A copy of this license is included with this source.
|
|
|
|
*
|
|
|
|
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
|
|
|
|
* Michael Smith <msmith@xiph.org>,
|
|
|
|
* oddsock <oddsock@xiph.org>,
|
|
|
|
* Karl Heyes <karl@xiph.org>
|
|
|
|
* and others (see AUTHORS for details).
|
|
|
|
*/
|
|
|
|
|
2002-08-18 01:06:58 -04:00
|
|
|
#ifndef __FSERVE_H__
|
|
|
|
#define __FSERVE_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2004-10-23 20:34:15 -04:00
|
|
|
typedef struct _fserve_t
|
2002-08-18 01:06:58 -04:00
|
|
|
{
|
|
|
|
client_t *client;
|
|
|
|
|
|
|
|
FILE *file;
|
|
|
|
int offset;
|
2004-11-11 11:21:01 -05:00
|
|
|
off_t content_length;
|
2002-08-18 01:06:58 -04:00
|
|
|
int datasize;
|
2004-10-23 20:34:15 -04:00
|
|
|
int ready;
|
2002-08-18 01:06:58 -04:00
|
|
|
unsigned char *buf;
|
2004-10-23 20:34:15 -04:00
|
|
|
struct _fserve_t *next;
|
2002-08-18 01:06:58 -04:00
|
|
|
} fserve_t;
|
|
|
|
|
|
|
|
void fserve_initialize(void);
|
|
|
|
void fserve_shutdown(void);
|
|
|
|
int fserve_client_create(client_t *httpclient, char *path);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|