Loading...
Searching...
No Matches
rpmurl.h
Go to the documentation of this file.
#ifndef H_RPMURL
#define H_RPMURL
#ifdef __cplusplus
extern "C" {
#endif
typedef enum urltype_e {
URL_IS_UNKNOWN = 0,
URL_IS_DASH = 1,
URL_IS_PATH = 2,
URL_IS_FTP = 3,
URL_IS_HTTP = 4,
URL_IS_HTTPS = 5,
URL_IS_HKP = 6
} urltype;
urltype urlIsURL(const char * url);
urltype urlPath(const char * url, const char ** pathp);
int urlGetFile(const char * url, const char * dest);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMURL */
urlIsURL
urltype urlIsURL(const char *url)
urltype_e
urltype_e
Definition rpmurl.h:17
urltype
enum urltype_e urltype
urlPath
urltype urlPath(const char *url, const char **pathp)
urlGetFile
int urlGetFile(const char *url, const char *dest)
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