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.

Variables

struct uricwuri = NULL
 Current working URI.

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 ( GPL2_OR_LATER_OR_UBDL  )
void churi ( struct uri uri)

Change working URI.

Parameters:
uriNew working URI, or NULL

Definition at line 45 of file cwuri.c.

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

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

                               {
        struct uri *new_uri = NULL;

        if ( uri )
                new_uri = resolve_uri ( cwuri, uri );

        uri_put ( cwuri );
        cwuri = new_uri;
}

Variable Documentation

struct uri* cwuri = NULL

Current working URI.

Definition at line 38 of file cwuri.c.

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