X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=netrc.h;h=c69316a89b6c40e3801e058e07181cfe3a01a1d4;hb=bc92e40ab0f174062f4e11cfdf12aa7b68ba325c;hp=c74d6b3c010646f98cee920674247060d056d2ed;hpb=6c847c7569654682cc3d14e4a14d3afbf207f63c;p=~andy%2Ffetchmail diff --git a/netrc.h b/netrc.h index c74d6b3c..c69316a8 100644 --- a/netrc.h +++ b/netrc.h @@ -1,20 +1,6 @@ /* netrc.h -- declarations for netrc.c - Copyright (C) 1996, Free Software Foundation, Inc. - Gordon Matzigkeit , 1996 - - 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. */ + * For license terms, see the file COPYING in this directory. + */ #ifndef _NETRC_H_ #define _NETRC_H_ 1 @@ -41,8 +27,8 @@ typedef struct _netrc_entry { /* The exact host name given in the .netrc, NULL if default. */ char *host; - /* The name of the account. */ - char *account; + /* The login name of the user. */ + char *login; /* Password for the account (NULL, if none). */ char *password; @@ -59,7 +45,10 @@ netrc_entry *parse_netrc __P((char *file)); /* Return the netrc entry from LIST corresponding to HOST. NULL is returned if no such entry exists. */ -netrc_entry *search_netrc __P((netrc_entry *list, char *host)); +netrc_entry *search_netrc __P((netrc_entry *list, char *host, char *account)); + +/* Free the netrc list structure */ +void free_netrc __P((netrc_entry *list)); __END_DECLS #endif /* _NETRC_H_ */