rpm  4.12.0.1
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 {
19  URL_IS_FTP = 3,
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 */
urltype urlPath(const char *url, const char **pathp)
Return path component of URL.
urltype urlIsURL(const char *url)
Return type of URL.
enum urltype_e urltype
Supported URL types.
urltype_e
Supported URL types.
Definition: rpmurl.h:15
int urlGetFile(const char *url, const char *dest)
Copy data from URL to local file.