/* $Id: wget.h,v 1.2 2002/03/03 21:03:54 richdawe Exp $ */

/*
 *  wget.h - Header for interface to wget for zippo
 *  Copyright (C) 2001, 2002 by Richard Dawe
 *      
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __zippo_wget_h__
#define __zippo_wget_h__

int wget_init (const char *root, char **http_proxies, char **ftp_proxies);

int wget_uninit (void);

const char *wget_executable (void);

/* TODO: Return codes that indicate what type of error occurred. */
int wget_get (const char *url, const char *dest, const int verbosity);
char **wget_get_listing (const char *url, const int verbosity);

#endif /* __zippo_wget_h__ */
