#include <assert.h>
Go to the source code of this file.
Data Structures | |
struct | urlinfo_s |
URL control structure. More... | |
Defines | |
#define | URLMAGIC 0xd00b1ed0 |
#define | URLSANE(u) assert(u && u->magic == URLMAGIC) |
#define | RPMURL_IOBUF_SIZE 4096 |
#define | RPMURL_DEBUG_IO 0x40000000 |
#define | RPMURL_DEBUG_REFS 0x20000000 |
#define | urlNew(_msg) XurlNew(_msg, __FILE__, __LINE__) |
#define | urlLink(_u, _msg) XurlLink(_u, _msg, __FILE__, __LINE__) |
#define | urlFree(_u, _msg) XurlFree(_u, _msg, __FILE__, __LINE__) |
Typedefs | |
typedef enum urltype_e | urltype |
Supported URL types. More... | |
typedef urlinfo_s * | urlinfo |
Enumerations | |
enum | urltype_e { URL_IS_UNKNOWN = 0, URL_IS_DASH = 1, URL_IS_PATH = 2, URL_IS_FTP = 3, URL_IS_HTTP = 4 } |
Supported URL types. More... | |
Functions | |
urlinfo | urlNew (const char *msg) |
Create a URL control structure instance. More... | |
urlinfo | XurlNew (const char *msg, const char *file, unsigned line) |
urlinfo | urlLink (urlinfo u, const char *msg) |
Reference a URL control structure instance. More... | |
urlinfo | XurlLink (urlinfo u, const char *msg, const char *file, unsigned line) |
urlinfo | urlFree (urlinfo u, const char *msg) |
Dereference a URL control structure instance. More... | |
urlinfo | XurlFree (urlinfo u, const char *msg, const char *file, unsigned line) |
void | urlFreeCache (void) |
Free cached URL control structures. More... | |
urltype | urlIsURL (const char *url) |
Return type of URL. More... | |
urltype | urlPath (const char *url, const char **pathp) |
Return path component of URL. More... | |
int | urlSplit (const char *url, urlinfo *uret) |
Parse URL string into a control structure. More... | |
int | urlGetFile (const char *url, const char *dest) |
Copy data from URL to local file. More... | |
Variables | |
int | _url_count |
urlinfo * | _url_cache |
int | _url_iobuf_size |
int | _url_debug |
Definition in file rpmurl.h.
|
|
|
|
|
|
|
Definition at line 120 of file rpmurl.h. Referenced by urlFind, urlFreeCache, and urlSplit. |
|
Definition at line 103 of file rpmurl.h. Referenced by urlFind. |
|
Definition at line 21 of file rpmurl.h. Referenced by XurlNew. |
|
Definition at line 89 of file rpmurl.h. Referenced by urlSplit. |
|
|
|
|
|
Supported URL types.
Referenced by domd5, doPatch, doUntar, rpmioFileExists, urlIsURL, and urlPath. |
|
Supported URL types.
|
|
Dereference a URL control structure instance.
|
|
Free cached URL control structures.
Definition at line 162 of file url.c. Referenced by main. |
|
Copy data from URL to local file.
|
|
Return type of URL.
|
|
Reference a URL control structure instance.
|
|
Create a URL control structure instance.
|
|
Return path component of URL.
|
|
Parse URL string into a control structure.
|
|
|
|
|
|
|
|
URL cache. |
|
No. of cached URL's. |
|
URL debugging? |
|
Initial size of URL I/O buffer. |