NetSurf
cookies.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Vincent Sanders <vince@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * Interface to win32 cookie viewing using nsw32 core windows.
22 *
23 * The interface assumes there is only a single cookie window which is
24 * presented (shown) when asked for and hidden by usual toolkit
25 * mechanics.
26 *
27 * The destructor is called once during browser shutdown
28 */
29
30#ifndef NETSURF_WINDOWS_COOKIES_H
31#define NETSURF_WINDOWS_COOKIES_H
32
33/**
34 * make the cookie window visible.
35 *
36 * \return NSERROR_OK on success else appropriate error code on faliure.
37 */
38nserror nsw32_cookies_present(const char *search_term);
39
40/**
41 * Free any resources allocated for the cookie window.
42 *
43 * \return NSERROR_OK on success else appropriate error code on faliure.
44 */
46
47#endif /* NETSURF_WINDOWS_COOKIES_H */
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror nsw32_cookies_present(const char *search_term)
make the cookie window visible.
Definition: cookies.c:173
nserror nsw32_cookies_finalise(void)
Free any resources allocated for the cookie window.
Definition: cookies.c:189