#include <assert.h>
Go to the source code of this file.
Data Structures | |
struct | urlinfo |
URL control structure. More... | |
Defines | |
#define | URLMAGIC 0xd00b1ed0 |
#define | URLSANE(u) assert(u && u->magic == URLMAGIC) |
#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 struct urlinfo * | urlinfo |
URL control structure. More... | |
Enumerations | |
enum | urltype { 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 *u) |
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_iobuf_size = 4096 |
Definition in file rpmurl.h.
|
|
|
Definition at line 22 of file rpmurl.h. Referenced by XurlFree(), XurlLink(), checkResponse(), ftpAbort(), ftpCheckResponse(), ftpCommand(), ftpFileDone(), ftpLogin(), ftpReq(), httpReq(), httpResp(), and urlFind().
|
|
Definition at line 94 of file rpmurl.h. Referenced by ufdClose(), urlConnect(), urlFind(), urlFreeCache(), and urlSplit().
|
|
Definition at line 79 of file rpmurl.h. Referenced by ftpOpen(), httpOpen(), ufdGetUrlinfo(), urlConnect(), and urlFind().
|
|
Definition at line 65 of file rpmurl.h. Referenced by urlinfo::magic(), and urlSplit().
|
|
URL control structure.
|
|
Supported URL types.
|
|
|
|
|
|
|
|
Dereference a URL control structure instance.
|
|
Free cached URL control structures.
Definition at line 142 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.
|
|
|