/* $Id: wget.h,v 1.3 2002/06/23 20:28:31 richdawe Exp $ */

/*
 *  wget.h - Header for interface to wget for pakke
 *  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 __pakke_wget_h__
#define __pakke_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 /* __pakke_wget_h__ */
