rpm: rpmurl.h Source File

rpm 4.13.0

rpmurl.h
Go to the documentation of this file.
1 #ifndef H_RPMURL
2 #define H_RPMURL
3
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
15 typedef enum urltype_e {
16 URL_IS_UNKNOWN = 0,
17 URL_IS_DASH = 1,
18 URL_IS_PATH = 2,
19 URL_IS_FTP = 3,
20 URL_IS_HTTP = 4,
21 URL_IS_HTTPS = 5,
22 URL_IS_HKP = 6
23 } urltype;
24
30 urltype urlIsURL(const char * url);
31
38 urltype urlPath(const char * url, const char ** pathp);
39
46 int urlGetFile(const char * url, const char * dest);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* H_RPMURL */
URL_IS_HKP
Definition: rpmurl.h:22
URL_IS_HTTP
Definition: rpmurl.h:20
URL_IS_FTP
Definition: rpmurl.h:19
URL_IS_HTTPS
Definition: rpmurl.h:21
urlPath
urltype urlPath(const char *url, const char **pathp)
Return path component of URL.
URL_IS_DASH
Definition: rpmurl.h:17
URL_IS_PATH
Definition: rpmurl.h:18
URL_IS_UNKNOWN
Definition: rpmurl.h:16
urlIsURL
urltype urlIsURL(const char *url)
Return type of URL.
urltype
enum urltype_e urltype
Supported URL types.
urltype_e
urltype_e
Supported URL types.
Definition: rpmurl.h:15
urlGetFile
int urlGetFile(const char *url, const char *dest)
Copy data from URL to local file.