rpm
4.17.0
rpmio
rpmurl.h
Go to the documentation of this file.
1
#ifndef H_RPMURL
2
#define H_RPMURL
3
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
17
typedef
enum
urltype_e
{
18
URL_IS_UNKNOWN
= 0,
19
URL_IS_DASH
= 1,
20
URL_IS_PATH
= 2,
21
URL_IS_FTP
= 3,
22
URL_IS_HTTP
= 4,
23
URL_IS_HTTPS
= 5,
24
URL_IS_HKP
= 6
25
}
urltype
;
26
32
urltype
urlIsURL
(
const
char
* url);
33
40
urltype
urlPath
(
const
char
* url,
const
char
** pathp);
41
48
int
urlGetFile
(
const
char
* url,
const
char
* dest);
49
50
#ifdef __cplusplus
51
}
52
#endif
53
54
#endif
/* H_RPMURL */
urlIsURL
urltype urlIsURL(const char *url)
Return type of URL.
urltype_e
urltype_e
Supported URL types.
Definition:
rpmurl.h:17
urltype
enum urltype_e urltype
Supported URL types.
urlPath
urltype urlPath(const char *url, const char **pathp)
Return path component of URL.
urlGetFile
int urlGetFile(const char *url, const char *dest)
Copy data from URL to local file.
URL_IS_HTTPS
@ URL_IS_HTTPS
Definition:
rpmurl.h:23
URL_IS_DASH
@ URL_IS_DASH
Definition:
rpmurl.h:19
URL_IS_FTP
@ URL_IS_FTP
Definition:
rpmurl.h:21
URL_IS_HTTP
@ URL_IS_HTTP
Definition:
rpmurl.h:22
URL_IS_UNKNOWN
@ URL_IS_UNKNOWN
Definition:
rpmurl.h:18
URL_IS_PATH
@ URL_IS_PATH
Definition:
rpmurl.h:20
URL_IS_HKP
@ URL_IS_HKP
Definition:
rpmurl.h:24
Generated by
1.9.1