diff options
| author | Michael Brown | 2011-04-08 00:01:05 +0200 |
|---|---|---|
| committer | Michael Brown | 2011-04-08 00:15:06 +0200 |
| commit | 870524a3b26de3b22bef680a783c2356c88f6433 (patch) | |
| tree | a3345565b250160d55d5856bb04115041e63fd5d /src/include/ipxe/efi | |
| parent | [device] Make driver name a generic device property (diff) | |
| download | ipxe-870524a3b26de3b22bef680a783c2356c88f6433.tar.gz ipxe-870524a3b26de3b22bef680a783c2356c88f6433.tar.xz ipxe-870524a3b26de3b22bef680a783c2356c88f6433.zip | |
[efi] Add EFI string formatting functions
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
| -rw-r--r-- | src/include/ipxe/efi/efi_strings.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_strings.h b/src/include/ipxe/efi/efi_strings.h new file mode 100644 index 000000000..023ccda07 --- /dev/null +++ b/src/include/ipxe/efi/efi_strings.h @@ -0,0 +1,23 @@ +#ifndef _IPXE_EFI_STRINGS_H +#define _IPXE_EFI_STRINGS_H + +/** @file + * + * EFI strings + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <stddef.h> +#include <stdint.h> +#include <stdarg.h> + +extern int efi_vsnprintf ( wchar_t *wbuf, size_t wsize, const char *fmt, + va_list args ); +extern int efi_snprintf ( wchar_t *wbuf, size_t wsize, const char *fmt, ... ); +extern int efi_vssnprintf ( wchar_t *wbuf, ssize_t swsize, const char *fmt, + va_list args ); +extern int efi_ssnprintf ( wchar_t *wbuf, ssize_t swsize, + const char *fmt, ... ); + +#endif /* _IPXE_EFI_STRINGS_H */ |
