Functions | Variables
cwuri.c File Reference

Current working URI. More...

#include <stddef.h>
#include <ipxe/uri.h>

Go to the source code of this file.


void churi (struct uri *uri)
 Change working URI. More...


struct uricwuri = NULL
 Current working URI. More...

Detailed Description

Current working URI.

Somewhat analogous to the current working directory in a POSIX system.

Definition in file cwuri.c.

Function Documentation



◆ churi()

void churi ( struct uri uri)

Change working URI.

uriNew working URI, or NULL

Definition at line 45 of file cwuri.c.

45  {
46  struct uri *new_uri = NULL;
48  if ( uri )
49  new_uri = resolve_uri ( cwuri, uri );
51  uri_put ( cwuri );
52  cwuri = new_uri;
53 }
static void uri_put(struct uri *uri)
Decrement URI reference count.
Definition: uri.h:205
A Uniform Resource Identifier.
Definition: uri.h:64
struct uri * resolve_uri(const struct uri *base_uri, struct uri *relative_uri)
Resolve base+relative URI.
Definition: uri.c:694
struct uri * cwuri
Current working URI.
Definition: cwuri.c:38
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321

References cwuri, NULL, resolve_uri(), and uri_put().

Referenced by efi_init_application(), image_exec(), tftp_apply_settings(), and uri_churi_okx().

Variable Documentation

◆ cwuri

struct uri* cwuri = NULL

Current working URI.

Definition at line 38 of file cwuri.c.

Referenced by churi(), cwuri_fetch_uri(), image_exec(), imgdownload(), uri_churi_okx(), and xfer_open_uri().