Go to the source code of this file.
◆ urlinfo
◆ urltype
◆ urltype_e
Supported URL types.
Enumerator |
---|
URL_IS_UNKNOWN | unknown (aka a file)
|
URL_IS_DASH | stdin/stdout
|
URL_IS_PATH | file://...
|
URL_IS_FTP | ftp://...
|
URL_IS_HTTP | http://...
|
URL_IS_HTTPS | https://...
|
URL_IS_HKP | hkp://...
|
Definition at line 15 of file rpmurl.h.
◆ urlFree()
Free a URL info structure instance.
- Parameters
-
- Returns
- dereferenced instance (NULL if freed)
◆ urlGetFile()
int urlGetFile |
( |
const char * |
url, |
|
|
const char * |
dest |
|
) |
| |
Copy data from URL to local file.
- Parameters
-
url | url string of source |
dest | file name of destination |
- Returns
- 0 on success, otherwise FTPERR_* code
◆ urlIsURL()
urltype urlIsURL |
( |
const char * |
url | ) |
|
Return type of URL.
- Parameters
-
- Returns
- type of url
Referenced by main().
◆ urlNew()
Create a URL info structure instance.
- Returns
- new instance
◆ urlPath()
urltype urlPath |
( |
const char * |
url, |
|
|
const char ** |
pathp |
|
) |
| |
Return path component of URL.
- Parameters
-
- Return values
-
pathp | pointer to path component of url |
- Returns
- type of url
◆ urlSplit()
int urlSplit |
( |
const char * |
url, |
|
|
urlinfo * |
uret |
|
) |
| |
Parse URL string into a control structure.
- Parameters
-
- Return values
-
uret | address of new control instance pointer |
- Returns
- 0 on success, -1 on error
◆ _url_debug