1/*
2 * Copyright 2007-2013, Axel D��rfler, axeld@pinc-software.de.
3 * Copyright 2009, Michael Lotz, mmlr@mlotz.ch. All rights reserved.
4 *
5 * Distributed under the terms of the MIT License.
6 */
7#ifndef UTILITY_H
8#define UTILITY_H
9
10
11#include <SupportDefs.h>
12
13#include "guid.h"
14
15
16struct static_guid;
17
18extern const guid_t kEmptyGUID;
19
20
21size_t to_utf8(const uint16* from, size_t maxFromLength, char* to, size_t toSize);
22const char* get_partition_type(const guid_t& guid);
23
24#ifndef _BOOT_MODE
25size_t to_ucs2(const char* from, size_t fromLength, uint16* to,
26	size_t maxToLength);
27bool get_guid_for_partition_type(const char* type, guid_t& guid);
28#endif // !_BOOT_MODE
29
30
31#endif	// UTILITY_H
32