|
|
2ff057 |
|
|
|
2ff057 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
2ff057 |
<head>
|
|
|
2ff057 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
|
2ff057 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
|
2ff057 |
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
|
2ff057 |
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
2ff057 |
<title>rpm: URL Manipulation API.</title>
|
|
|
2ff057 |
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
|
2ff057 |
<script type="text/javascript" src="jquery.js"></script>
|
|
|
2ff057 |
<script type="text/javascript" src="dynsections.js"></script>
|
|
|
2ff057 |
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
|
2ff057 |
</head>
|
|
|
2ff057 |
<body>
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
rpm
|
|
|
2ff057 |
4.14.2
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
<script type="text/javascript" src="menudata.js"></script>
|
|
|
2ff057 |
<script type="text/javascript" src="menu.js"></script>
|
|
|
2ff057 |
<script type="text/javascript">
|
|
|
2ff057 |
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
|
2ff057 |
$(function() {
|
|
|
2ff057 |
initMenu('',false,false,'search.php','Search');
|
|
|
2ff057 |
});
|
|
|
2ff057 |
/* @license-end */</script>
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Typedefs |
|
|
|
2ff057 |
Enumerations |
|
|
|
2ff057 |
Functions
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
A couple utils for URL Manipulation.
|
|
|
2ff057 |
More...
|
|
|
2ff057 |
|
|
|
2ff057 |
Collaboration diagram for URL Manipulation API.:
|
|
|
2ff057 |
|
|
|
2ff057 |
<center>
|
|
|
2ff057 |
<map name="group____rpmurl" id="group____rpmurl">
|
|
|
2ff057 |
<area shape="rect" id="node2" href="group__io.html" title="I/O" alt="" coords="5,5,45,32"/>
|
|
|
2ff057 |
</map>
|
|
|
2ff057 |
</center>
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Typedefs
|
|
|
2ff057 |
typedef enum urltype_e urltype
|
|
|
2ff057 |
Supported URL types. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Enumerations
|
|
|
2ff057 |
enum urltype_e {
|
|
|
2ff057 |
URL_IS_UNKNOWN = 0,
|
|
|
2ff057 |
URL_IS_DASH = 1,
|
|
|
2ff057 |
URL_IS_PATH = 2,
|
|
|
2ff057 |
URL_IS_FTP = 3,
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_HTTP = 4,
|
|
|
2ff057 |
URL_IS_HTTPS = 5,
|
|
|
2ff057 |
URL_IS_HKP = 6
|
|
|
2ff057 |
|
|
|
2ff057 |
}
|
|
|
2ff057 |
Supported URL types. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Functions
|
|
|
2ff057 |
urltype urlIsURL (const char *url)
|
|
|
2ff057 |
Return type of URL. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
urltype urlPath (const char *url, const char **pathp)
|
|
|
2ff057 |
Return path component of URL. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
int urlGetFile (const char *url, const char *dest)
|
|
|
2ff057 |
Copy data from URL to local file. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Detailed Description
|
|
|
2ff057 |
A couple utils for URL Manipulation.
|
|
|
2ff057 |
Typedef Documentation
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ urltype
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
typedef enum urltype_e urltype
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Supported URL types.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Enumeration Type Documentation
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ urltype_e
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
enum urltype_e
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Supported URL types.
|
|
|
2ff057 |
|
|
|
2ff057 |
EnumeratorURL_IS_UNKNOWN unknown (aka a file)
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_DASH stdin/stdout
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_PATH file://...
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_FTP ftp://...
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_HTTP http://...
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_HTTPS https://...
|
|
|
2ff057 |
|
|
|
2ff057 |
URL_IS_HKP hkp://...
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Definition at line 17 of file rpmurl.h.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Function Documentation
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ urlGetFile()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
int urlGetFile
|
|
|
2ff057 |
(
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
url,
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
dest
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Copy data from URL to local file.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
urlurl string of source
|
|
|
2ff057 |
destfile name of destination
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- 0 on success, -1 on error
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ urlIsURL()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
urltype urlIsURL
|
|
|
2ff057 |
(
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
url)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Return type of URL.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
urlurl string
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- type of url
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ urlPath()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
urltype urlPath
|
|
|
2ff057 |
(
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
url,
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
const char **
|
|
|
2ff057 |
pathp
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Return path component of URL.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
urlurl string
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Return values
|
|
|
2ff057 |
|
|
|
2ff057 |
pathppointer to path component of url
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- type of url
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
<address class="footer"><small>
|
|
|
2ff057 |
Generated by
|
|
|
2ff057 |
|
|
|
2ff057 |
1.8.14
|
|
|
2ff057 |
</small></address>
|
|
|
2ff057 |
</body>
|
|
|
2ff057 |
</html>
|