NetSurf
utils
useragent.h
Go to the documentation of this file.
1
/*
2
* Copyright 2007 Daniel Silverstone <dsilvers@digital-scurf.org>
3
* Copyright 2007 Rob Kendrick <rjek@netsurf-browser.org>
4
*
5
* This file is part of NetSurf, http://www.netsurf-browser.org/
6
*
7
* NetSurf is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 2 of the License.
10
*
11
* NetSurf is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef _NETSURF_UTILS_USERAGENT_H_
21
#define _NETSURF_UTILS_USERAGENT_H_
22
23
/** Retrieve the core user agent for this release.
24
*
25
* The string returned can be relied upon to exist for the duration of
26
* the execution of the program. There is no need to copy it.
27
*/
28
const
char
*
user_agent_string
(
void
);
29
30
/** Free any memory allocated for the user_agent_string
31
*
32
* After calling this, the value returned by \ref user_agent_string()
33
* is to be considered invalid.
34
*/
35
void
free_user_agent_string
(
void
);
36
37
#endif
free_user_agent_string
void free_user_agent_string(void)
Free any memory allocated for the user_agent_string.
Definition:
useragent.c:88
user_agent_string
const char * user_agent_string(void)
Retrieve the core user agent for this release.
Definition:
useragent.c:79
Generated on Tue Nov 12 2024 23:39:56 for NetSurf by
1.9.4