iPXE
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.

Functions

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

Variables

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

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ churi()

void churi ( struct uri uri)

Change working URI.

Parameters
uriNew working URI, or NULL

Definition at line 45 of file cwuri.c.

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

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

Referenced by 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(), image_exec(), imgdownload(), uri_churi_okx(), and xfer_open_uri().