iPXE
imgmgmt.h
Go to the documentation of this file.
1#ifndef _USR_IMGMGMT_H
2#define _USR_IMGMGMT_H
3
4/** @file
5 *
6 * Image management
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <ipxe/image.h>
14
15extern int imgdownload ( struct uri *uri, unsigned long timeout,
16 struct image **image );
17extern int imgdownload_string ( const char *uri_string, unsigned long timeout,
18 struct image **image );
19extern int imgacquire ( const char *name, unsigned long timeout,
20 struct image **image );
21extern void imgstat ( struct image *image );
22extern int imgmem ( const char *name, const void *data, size_t len );
23
24#endif /* _USR_IMGMGMT_H */
const char * name
Definition ath9k_hw.c:1986
void timeout(int)
ring len
Length.
Definition dwmac.h:226
uint8_t data[48]
Additional event data.
Definition ena.h:11
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
Executable images.
int imgacquire(const char *name, unsigned long timeout, struct image **image)
Acquire an image.
Definition imgmgmt.c:143
int imgdownload(struct uri *uri, unsigned long timeout, struct image **image)
Download a new image.
Definition imgmgmt.c:53
int imgmem(const char *name, const void *data, size_t len)
Create image from block of memory.
Definition imgmgmt.c:189
int imgdownload_string(const char *uri_string, unsigned long timeout, struct image **image)
Download a new image.
Definition imgmgmt.c:121
void imgstat(struct image *image)
Display status of an image.
Definition imgmgmt.c:160
An executable image.
Definition image.h:24
A Uniform Resource Identifier.
Definition uri.h:65