libnx
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.
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 
Korean (Hangul)
Definition: pl.h:16
void * plGetSharedmemAddr(void)
Gets a specific shared-font via SharedFontType, see PlSharedFontType.
Nintendo Extended.
Definition: pl.h:17
u32 Result
Function error code result type.
Definition: types.h:46
uint64_t u64
64-bit unsigned integer.
Definition: types.h:24
Chinese Traditional.
Definition: pl.h:15
Total fonts supported by this enum.
Definition: pl.h:18
uint32_t u32
32-bit unsigned integer.
Definition: types.h:23
Extended Chinese Simplified.
Definition: pl.h:14
Japan, US and Europe.
Definition: pl.h:12
PlSharedFontType
Definition: pl.h:10
Result plGetSharedFontByType(PlFontData *font, u32 SharedFontType)
Gets shared font(s).
Chinese Simplified.
Definition: pl.h:13
Definition: pl.h:21