Documentation: Remove ditaa support
[coreboot.git] / util / smmstoretool / utils.h
bloba1cefc1748ad0de2eb0325f7aa3a11c13bcf968e
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef SMMSTORETOOL__UTILS_H__
4 #define SMMSTORETOOL__UTILS_H__
6 #include <stddef.h>
7 #include <stdbool.h>
8 #include <stdint.h>
10 #include "udk2017.h"
12 struct mem_range_t {
13 uint8_t *start;
14 size_t length;
17 void *xmalloc(size_t size);
19 char *to_chars(const CHAR16 uchars[], size_t size);
21 CHAR16 *to_uchars(const char chars[], size_t *size);
23 bool str_eq(const char lhs[], const char rhs[]);
25 struct mem_range_t map_file(const char path[], bool rw);
27 void unmap_file(struct mem_range_t store);
29 #endif // SMMSTORETOOL__UTILS_H__