#ifndef	fetchinfo_h
#define	fetchinfo_h

/*
** Copyright 1998 - 1999 S. Varshavchik.
** See COPYING for distribution information.
*/


struct fetchinfo {
	struct fetchinfo *next;	/* Siblings */
	char *name;		/* Name */
	char *bodysection;	/* BODY section */
	int ispartial;
	unsigned long partialstart;
	unsigned long partialend;
	struct fetchinfo *bodysublist;	/* HEADER sublist */
	} ;

struct fetchinfo *fetchinfo_alloc(int);

void fetchinfo_free(struct fetchinfo *);

void fetch_free_cache();

void save_cached_offsets(off_t, off_t, off_t);

int get_cached_offsets(off_t, off_t *, off_t *);

#endif
