aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/cmds.h
blob: f58cdea32b7a7aa7758518825915387d62d45dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef UFM_CMDS_H
#define UFM_CMDS_H

#include <Uefi.h>
#include <Library/ShellLib.h>

/*
 * Deletes a node including subdirectories
 *
 * node: the node to start deleting with
 *
 * return: EFI_SUCCESS           The operation was successful
           EFI_ACCESS_DENIED     A file was read only
           EFI_ABORTED           The abort was received
           EFI_DEVICE_ERROR      A device error occurred reading this node
*/
EFI_STATUS delete_file(EFI_SHELL_FILE_INFO *node);

/*
 * Creates one or more directories.
 *
 * dir_name: the name of a directory or directories to create
 *
 * return: EFI_SUCCESS           Directory(-ies) was created
           EFI_INVALID_PARAMETER Parameter has an invalid value
           EFI_ACCESS_DENIED     Error while creating directory(-ies)
           EFI_OUT_OF_RESOURCES  Not enough resources were available to open the
                                 file
*/
EFI_STATUS make_directory(CONST CHAR16 *dir_name);

#endif /* UFM_CMDS_H */