Fix warning about uninitialized variable
[ntk/apt.git] / apt-pkg / contrib / netrc.h
CommitLineData
592b7800
MV
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: netrc.h,v 1.11 2004/01/07 09:19:35 bagder Exp $
4/* ######################################################################
5
6 netrc file parser - returns the login and password of a give host in
7 a specified netrc-type file
8
9 Originally written by Daniel Stenberg, <daniel@haxx.se>, et al. and
10 placed into the Public Domain, do with it what you will.
11
12 ##################################################################### */
13 /*}}}*/
14#ifndef NETRC_H
15#define NETRC_H
16
472ff00e 17#include <string>
592b7800 18
453b82a3
DK
19#include <apt-pkg/macros.h>
20
b9dadc24
DK
21#ifndef APT_8_CLEANER_HEADERS
22#include <apt-pkg/strutl.h>
23#endif
24
592b7800
MV
25#define DOT_CHAR "."
26#define DIR_CHAR "/"
27
472ff00e
DK
28class URI;
29
453b82a3 30// FIXME: kill this export on the next ABI break - strongly doubt its in use anyway
5caefc91 31// outside of the apt itself, its really a internal interface
453b82a3 32APT_DEPRECATED int parsenetrc (char *host, char *login, char *password, char *filename);
592b7800 33
8f3ba4e8 34void maybe_add_auth (URI &Uri, std::string NetRCFile);
592b7800 35#endif