rpm  4.10.0
rpmurl.h
Go to the documentation of this file.
00001 #ifndef H_RPMURL
00002 #define H_RPMURL
00003 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00015 typedef enum urltype_e {
00016     URL_IS_UNKNOWN      = 0,    
00017     URL_IS_DASH         = 1,    
00018     URL_IS_PATH         = 2,    
00019     URL_IS_FTP          = 3,    
00020     URL_IS_HTTP         = 4,    
00021     URL_IS_HTTPS        = 5,    
00022     URL_IS_HKP          = 6     
00023 } urltype;
00024 
00030 urltype urlIsURL(const char * url);
00031 
00038 urltype urlPath(const char * url, const char ** pathp);
00039 
00046 int urlGetFile(const char * url, const char * dest);
00047 
00048 #ifdef __cplusplus
00049 }
00050 #endif
00051 
00052 #endif  /* H_RPMURL */