libnx
Main Page
Related Pages
Data Structures
Files
File List
Globals
include
switch
services
pl.h
Go to the documentation of this file.
1
/**
2
* @file pl.h
3
* @brief pl:u service IPC wrapper.
4
* @author yellows8
5
* @copyright libnx Authors
6
*/
7
#pragma once
8
#include "../types.h"
9
10
typedef
enum
11
{
12
PlSharedFontType_Standard
= 0,
///< Japan, US and Europe
13
PlSharedFontType_ChineseSimplified
= 1,
///< Chinese Simplified
14
PlSharedFontType_ExtChineseSimplified
= 2,
///< Extended Chinese Simplified
15
PlSharedFontType_ChineseTraditional
= 3,
///< Chinese Traditional
16
PlSharedFontType_KO
= 4,
///< Korean (Hangul)
17
PlSharedFontType_NintendoExt
= 5,
///< Nintendo Extended
18
PlSharedFontType_Total
,
///< Total fonts supported by this enum.
19
}
PlSharedFontType
;
20
21
typedef
struct
{
22
u32
type;
23
u32
offset;
24
u32
size;
25
void
* address;
26
}
PlFontData
;
27
28
Result
plInitialize(
void
);
29
void
plExit(
void
);
30
void
*
plGetSharedmemAddr
(
void
);
31
32
///< Gets a specific shared-font via SharedFontType, see \ref PlSharedFontType.
33
Result
plGetSharedFontByType
(
PlFontData
* font,
u32
SharedFontType);
34
35
///< Gets shared font(s).
36
Result
plGetSharedFont(
u64
LanguageCode,
PlFontData
* fonts,
size_t
max_fonts,
size_t
* total_fonts);
37
PlSharedFontType_KO
Korean (Hangul)
Definition:
pl.h:16
plGetSharedmemAddr
void * plGetSharedmemAddr(void)
Gets a specific shared-font via SharedFontType, see PlSharedFontType.
PlSharedFontType_NintendoExt
Nintendo Extended.
Definition:
pl.h:17
Result
u32 Result
Function error code result type.
Definition:
types.h:46
u64
uint64_t u64
64-bit unsigned integer.
Definition:
types.h:24
PlSharedFontType_ChineseTraditional
Chinese Traditional.
Definition:
pl.h:15
PlSharedFontType_Total
Total fonts supported by this enum.
Definition:
pl.h:18
u32
uint32_t u32
32-bit unsigned integer.
Definition:
types.h:23
PlSharedFontType_ExtChineseSimplified
Extended Chinese Simplified.
Definition:
pl.h:14
PlSharedFontType_Standard
Japan, US and Europe.
Definition:
pl.h:12
PlSharedFontType
PlSharedFontType
Definition:
pl.h:10
plGetSharedFontByType
Result plGetSharedFontByType(PlFontData *font, u32 SharedFontType)
Gets shared font(s).
PlSharedFontType_ChineseSimplified
Chinese Simplified.
Definition:
pl.h:13
PlFontData
Definition:
pl.h:21
Generated by
1.8.11