1 Star 0 Fork 0

imoney / fetchmail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
netrc.h 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Matthias Andree 提交于 2010-04-01 01:01 . Remove support for EMX and BEOS.
/* netrc.h -- declarations for netrc.c
* For license terms, see the file COPYING in this directory.
*/
#ifndef _NETRC_H_
#define _NETRC_H_ 1
# undef __BEGIN_DECLS
# undef __END_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS /* empty */
# define __END_DECLS /* empty */
#endif
/* The structure used to return account information from the .netrc. */
typedef struct _netrc_entry {
/* The exact host name given in the .netrc, NULL if default. */
char *host;
/* The login name of the user. */
char *login;
/* Password for the account (NULL, if none). */
char *password;
/* Pointer to the next entry in the list. */
struct _netrc_entry *next;
} netrc_entry;
__BEGIN_DECLS
/* Parse FILE as a .netrc file (as described in ftp(1)), and return a
list of entries. NULL is returned if the file could not be
parsed. */
netrc_entry *parse_netrc (char *file);
/* Return the netrc entry from LIST corresponding to HOST. NULL is
returned if no such entry exists. */
netrc_entry *search_netrc (netrc_entry *list, char *host, char *account);
/* Free the netrc list structure */
void free_netrc (netrc_entry *list);
__END_DECLS
#endif /* _NETRC_H_ */
1
https://gitee.com/csq1124/fetchmail.git
git@gitee.com:csq1124/fetchmail.git
csq1124
fetchmail
fetchmail
BRANCH_MAPI

搜索帮助