summaryrefslogtreecommitdiff
path: root/desktop/401login.h
blob: 27f76f65a2a4f398ea6ae251f178c41b7d62d95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * This file is part of NetSurf, http://netsurf.sourceforge.net/
 * Licensed under the GNU General Public License,
 *                http://www.opensource.org/licenses/gpl-license
 * Copyright 2003 John M Bell <jmb202@ecs.soton.ac.uk>
 */

#ifndef NETSURF_DESKTOP_401LOGIN_H
#define NETSURF_DESKTOP_401LOGIN_H

#include "netsurf/utils/config.h"
#include "netsurf/content/content.h"
#include "netsurf/desktop/browser.h"

#ifdef WITH_AUTH

struct login {

        char *host;             /**< hostname */
	char *logindetails;     /**< string containing "username:password" */
	struct login *next;     /**< next in list */
	struct login *prev;     /**< previous in list */
};

void gui_401login_open(struct browser_window *bw, struct content *c,
                       char *realm);
void login_list_add(char *host, char *logindets);
struct login *login_list_get(char *host);
void login_list_remove(char *host);

#endif

#endif