Shared Database services: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= pl:u = | = pl:u = | ||
This is "nn::pl::detail:: | This is "nn::pl::detail::IPlatformServiceManager". | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
Line 7: | Line 6: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#RequestSharedFontLoad]] | ||
|- | |- | ||
| 1 || [[# | | 1 || [[#GetSharedFontLoadState]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#GetSharedFontSize]] | ||
|- | |- | ||
| 3 || [[# | | 3 || [[#GetSharedFontAddress]] | ||
|- | |- | ||
| 4 || [[# | | 4 || [[#GetSharedFontSharedMemoryHandle]] | ||
|- | |- | ||
| 5 || [[#GetSharedFontInOrderOfPriority]] | | 5 || [[#GetSharedFontInOrderOfPriority]] | ||
Line 21: | Line 20: | ||
| 6 || [4.0.0+] GetSharedFontInOrderOfPriorityForSystem | | 6 || [4.0.0+] GetSharedFontInOrderOfPriorityForSystem | ||
|- | |- | ||
| 100 || [8.0.0+] | | 100 || [8.0.0+] RequestApplicationFunctionAuthorization | ||
|- | |- | ||
| 101 || [8.0.0+] | | 101 || [8.0.0+] RequestApplicationFunctionAuthorizationForSystem | ||
|} | |} | ||
== | == RequestSharedFontLoad == | ||
Takes a [[#SharedFontType]] (uint32), no output. | Takes a [[#SharedFontType]] (uint32), no output. | ||
== | == GetSharedFontLoadState == | ||
Takes a [[#SharedFontType]] (uint32), returns the [[#LoadState]] (uint32). | Takes a [[#SharedFontType]] (uint32), returns the [[#LoadState]] (uint32). | ||
Line 42: | Line 41: | ||
|} | |} | ||
== | == GetSharedFontSize == | ||
Takes a [[#SharedFontType]] (uint32), returns the Font Size (uint32). | Takes a [[#SharedFontType]] (uint32), returns the Font Size (uint32). | ||
== | == GetSharedFontAddress == | ||
Takes a [[#SharedFontType]] (uint32), returns the offset (uint32) to the Font Address. | Takes a [[#SharedFontType]] (uint32), returns the offset (uint32) to the Font Address. | ||
== | == GetSharedFontSharedMemoryHandle == | ||
No input, returns an output SharedMemory handle. | No input, returns an output SharedMemory handle. | ||
User-processes map this SharedMemory with size=0x1100000 and permissions=R--. | User-processes map this SharedMemory with size=0x1100000 and permissions=R--. | ||
Font data is TTF, located at the offset returned by [[# | Font data is TTF, located at the offset returned by [[#GetSharedFontAddress]]. | ||
== GetSharedFontInOrderOfPriority == | == GetSharedFontInOrderOfPriority == | ||
Line 60: | Line 59: | ||
The buffers are an array of u32s which specify information about a specific font. Buffer1[n] is related to Buffer2[n] and Buffer3[n]. | The buffers are an array of u32s which specify information about a specific font. Buffer1[n] is related to Buffer2[n] and Buffer3[n]. | ||
Example: Font index 0s offset is at Buffer2[0], size is at Buffer3[0]. | Example: Font index 0s offset is at Buffer2[0], size is at Buffer3[0]. | ||
The fonts are relative to the shared memory created by [[# | The fonts are relative to the shared memory created by [[#GetSharedFontSharedMemoryHandle]] | ||
== SharedFontType == | == SharedFontType == |