aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/fs.h
blob: f7625b1398f6715f8fcd19ab025588fd63f802ac (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
#ifndef UFM_FS_H
#define UFM_FS_H

#include <Uefi.h>

struct fs_array {
	CHAR16 **full_name;
	int len; // number of elements in array
};

/*
 * Gets the mapped names of the filesystems
 *
 * handles: a pointer to the buffer to array of handles that support Simple FS Protocol
 * count: the number of handles
 *
 * return: A pointer to the allocated structure or NULL if allocation fails
*/
struct fs_array *fsa_alloc(EFI_HANDLE *handles, UINTN count);

/*
 * Deletes the array of filesystems, frees the structure
 *
 * fsa: the pointer to the array of filesystems
 *
 * return: VOID
*/
VOID fsa_release(struct fs_array *fsa);

#endif /* UFM_FS_H */