Annotation of qemu/roms/ipxe/src/include/usr/imgmgmt.h, revision 1.1

1.1     ! root        1: #ifndef _USR_IMGMGMT_H
        !             2: #define _USR_IMGMGMT_H
        !             3: 
        !             4: /** @file
        !             5:  *
        !             6:  * Image management
        !             7:  *
        !             8:  */
        !             9: 
        !            10: FILE_LICENCE ( GPL2_OR_LATER );
        !            11: 
        !            12: #include <ipxe/image.h>
        !            13: 
        !            14: extern int register_and_put_image ( struct image *image );
        !            15: extern int register_and_probe_image ( struct image *image );
        !            16: extern int register_and_select_image ( struct image *image );
        !            17: extern int register_and_boot_image ( struct image *image );
        !            18: extern int register_and_replace_image ( struct image *image );
        !            19: extern int imgdownload ( struct uri *uri, const char *name, const char *cmdline,
        !            20:                         int ( * action ) ( struct image *image ) );
        !            21: extern int imgdownload_string ( const char *uri_string, const char *name,
        !            22:                                const char *cmdline,
        !            23:                                int ( * action ) ( struct image *image ) );
        !            24: extern void imgstat ( struct image *image );
        !            25: extern void imgfree ( struct image *image );
        !            26: 
        !            27: /**
        !            28:  * Select an image for execution
        !            29:  *
        !            30:  * @v image            Image
        !            31:  * @ret rc             Return status code
        !            32:  */
        !            33: static inline int imgselect ( struct image *image ) {
        !            34:        return image_select ( image );
        !            35: }
        !            36: 
        !            37: /**
        !            38:  * Find the previously-selected image
        !            39:  *
        !            40:  * @ret image          Image, or NULL
        !            41:  */
        !            42: static inline struct image * imgautoselect ( void ) {
        !            43:        return image_find_selected();
        !            44: }
        !            45: 
        !            46: /**
        !            47:  * Execute an image
        !            48:  *
        !            49:  * @v image            Image
        !            50:  * @ret rc             Return status code
        !            51:  */
        !            52: static inline int imgexec ( struct image *image ) {
        !            53:        return image_exec ( image );
        !            54: }
        !            55: 
        !            56: #endif /* _USR_IMGMGMT_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.