fserve.h 319 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef __FSERVE_H__
#define __FSERVE_H__

#include <stdio.h>

typedef struct
{
    client_t *client;

    FILE *file;
    int offset;
    int datasize;
    unsigned char *buf;
} fserve_t;

void fserve_initialize(void);
void fserve_shutdown(void);
int fserve_client_create(client_t *httpclient, char *path);


#endif