ELinks 0.18.0
|
#include <errno.h>
#include <stdlib.h>
#include "elinks.h"
#include "document/html/parse-meta-refresh.h"
#include "osdep/ascii.h"
#include "util/string.h"
Macros | |
#define | LWS(c) |
Functions | |
int | html_parse_meta_refresh (const char *content, unsigned long *delay_out, char **url_out) |
Parses a <meta http-equiv="refresh" content="..."> element. |
#define LWS | ( | c | ) |
int html_parse_meta_refresh | ( | const char * | content, |
unsigned long * | delay, | ||
char ** | url ) |
Parses a <meta http-equiv="refresh" content="..."> element.
[in] | content | The value of the content attribute, with entities already expanded. |
[out] | delay | How many seconds to wait before refreshing. |
[out] | url | The URI to load when refreshing, or NULL to reload the same document. The caller must free the string with mem_free() unless it's NULL. |