20#include <libcss/libcss.h>
28 lwc_string *rel, lwc_string **abs)
43 error =
nsurl_join(nsbase, lwc_string_data(rel), &nsabs);
54 if (lerror != lwc_error_ok) {
57 return lerror == lwc_error_oom ? CSS_NOMEM : CSS_INVALID;
nserror
Enumeration of error codes.
@ NSERROR_NOMEM
Memory exhaustion.
css_error nscss_resolve_url(void *pw, const char *base, lwc_string *rel, lwc_string **abs)
URL resolution callback for libcss.
NetSurf URL handling (interface).
nserror nsurl_create(const char *const url_s, nsurl **url)
Create a NetSurf URL object from a URL string.
void nsurl_unref(nsurl *url)
Drop a reference to a NetSurf URL object.
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
size_t nsurl_length(const nsurl *url)
Find the length of a NetSurf URL object's URL, as returned by nsurl_access.
nserror nsurl_join(const nsurl *base, const char *rel, nsurl **joined)
Join a base url to a relative link part, creating a new NetSurf URL object.
struct nsurl nsurl
NetSurf URL object.
Interface to utility string handling.