#ifndef __THTTPD_H__
#define __THTTPD_H__

void thttpd_init(void);
void thttpd_appcall(void);

/* UIP_APPCALL: the name of the application function. This function
   must return void and take no arguments (i.e., C type "void
   appfunc(void)"). */
#ifndef UIP_APPCALL
#define UIP_APPCALL     thttpd_appcall
#endif

struct thttpd_state {
   char *dataptr;
   unsigned int dataleft;
};


/* UIP_APPSTATE_SIZE: The size of the application-specific state
   stored in the uip_conn structure. */
#ifndef UIP_APPSTATE_SIZE
#define UIP_APPSTATE_SIZE (sizeof(struct thttpd_state))
#endif

extern struct thttpd_state *ths;

#endif /* __THTTPD_H__ */
