/* fetchfile.h
 *
 * WebGet: Acorn Web Fetcher and rewriter
 * Functions for opening and reading from fetch files.
 *
 *  Joseph Heenan, 1996-8
 * All rights reserved.
 *
 * $Log: fetchfile,v $
 * Revision 1.3  1998/09/15 17:59:16  joseph
 * Added 'Launch URLs' and 'Open root' to icon bar menu
 *
 * Revision 1.2  1998/08/12 21:41:14  joseph
 * Moved searchfordesc from addurl to fetchfile and made global
 *
 * Revision 1.1  1998/07/24 17:11:10  joseph
 * Added UI for adding URLs to a fetchfile
 *
 *
 */

#ifndef FETCHFILE_H
#define FETCHFILE_H

typedef enum
{
  FETCHFILE_LOAD,
  FETCHFILE_OPENURL,
  FETCHFILE_OPENROOT
} fetchfile_action_type;

FILE *fetchfile_open( const char */*name*/ );
char *fetchfile_readline( FILE */*f*/, char */*line*/, int /*size*/ );
int fetchfile_readtag( const char */*fname*/, char */*tag*/, char */*buffer*/, int /*bufsize*/ );
int fetchfile_load( const char */*name*/, fetchfile_action_type /*action*/ );
int fetchfile_writehead( FILE */*f*/ );
int fetchfile_searchfordesc( const char *desc, char *buffer, int bufsize );

#endif
