| 
    libnx v4.9.0
    
   | 
 
Mii services (mii:*) IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
| struct | MiiDatabase | 
| struct | MiiCreateId | 
| struct | MiiCharInfo | 
| struct | MiiNfpStoreDataExtension | 
Enumerations | |
| enum | MiiServiceType {  MiiServiceType_System = 0 , MiiServiceType_User = 1 }  | 
| enum | MiiAge {  MiiAge_Young = 0 , MiiAge_Normal = 1 , MiiAge_Old = 2 , MiiAge_All = 3 }  | 
| Mii age.  More... | |
| enum | MiiGender {  MiiGender_Male = 0 , MiiGender_Female = 1 , MiiGender_All = 2 }  | 
| Mii gender.  More... | |
| enum | MiiFaceColor {  MiiFaceColor_Black = 0 , MiiFaceColor_White = 1 , MiiFaceColor_Asian = 2 , MiiFaceColor_All = 3 }  | 
| Mii face color.  More... | |
| enum | MiiSourceFlag {  MiiSourceFlag_Database = (1U<<( 0 )) , MiiSourceFlag_Default = (1U<<( 1 )) , MiiSourceFlag_All = MiiSourceFlag_Database | MiiSourceFlag_Default }  | 
| enum | MiiSpecialKeyCode {  MiiSpecialKeyCode_Normal = 0 , MiiSpecialKeyCode_Special = 0xA523B78F }  | 
Functions | |
| Result | miiInitialize (MiiServiceType service_type) | 
| Initialize mii.  | |
| void | miiExit (void) | 
| Exit mii.  | |
| Service * | miiGetServiceSession (void) | 
| Gets the Service object for the actual mii service session.  | |
| Result | miiOpenDatabase (MiiDatabase *out, MiiSpecialKeyCode key_code) | 
| Opens a mii database.   | |
| Result | miiDatabaseIsUpdated (MiiDatabase *db, bool *out_updated, MiiSourceFlag flag) | 
| Returns whether the mii database is updated.   | |
| Result | miiDatabaseIsFull (MiiDatabase *db, bool *out_full) | 
| Returns whether the mii database is full.   | |
| Result | miiDatabaseGetCount (MiiDatabase *db, s32 *out_count, MiiSourceFlag flag) | 
| Returns number of miis in the database with the specified source flag.   | |
| Result | miiDatabaseGet1 (MiiDatabase *db, MiiSourceFlag flag, MiiCharInfo *out_infos, s32 count, s32 *total_out) | 
| Reads mii charinfo data from the specified source flag.   | |
| Result | miiDatabaseBuildRandom (MiiDatabase *db, MiiAge age, MiiGender gender, MiiFaceColor face_color, MiiCharInfo *out_info) | 
| Generates a random mii charinfo (doesn't register it in the console database).   | |
| void | miiDatabaseClose (MiiDatabase *db) | 
| Closes a mii database.  | |
Mii services (mii:*) IPC wrapper.
| enum MiiAge | 
| enum MiiFaceColor | 
| enum MiiGender | 
| enum MiiServiceType | 
| enum MiiSourceFlag | 
| enum MiiSpecialKeyCode | 
| Result miiDatabaseBuildRandom | ( | MiiDatabase * | db, | 
| MiiAge | age, | ||
| MiiGender | gender, | ||
| MiiFaceColor | face_color, | ||
| MiiCharInfo * | out_info | ||
| ) | 
Generates a random mii charinfo (doesn't register it in the console database).
| [in] | db | Database. | 
| [in] | age | Mii's age. | 
| [in] | gender | Mii's gender. | 
| [in] | face_color | Mii's face color. | 
| [out] | out_info | Out mii charinfo data. | 
| Result miiDatabaseGet1 | ( | MiiDatabase * | db, | 
| MiiSourceFlag | flag, | ||
| MiiCharInfo * | out_infos, | ||
| s32 | count, | ||
| s32 * | total_out | ||
| ) | 
Reads mii charinfo data from the specified source flag.
| [in] | db | Database. | 
| [in] | flag | Source flag. | 
| [out] | out_infos | Output mii charinfo array. | 
| [in] | count | Number of mii chainfos to read. | 
| [out] | total_out | Number of mii charinfos which were actually read. | 
| Result miiDatabaseGetCount | ( | MiiDatabase * | db, | 
| s32 * | out_count, | ||
| MiiSourceFlag | flag | ||
| ) | 
Returns number of miis in the database with the specified source flag.
| [in] | db | Database. | 
| [in] | flag | Source flag. | 
| [out] | out_count | Out mii count. | 
| Result miiDatabaseIsFull | ( | MiiDatabase * | db, | 
| bool * | out_full | ||
| ) | 
Returns whether the mii database is full.
| [in] | db | Database. | 
| [out] | out_full | Whether the mii database is full. | 
| Result miiDatabaseIsUpdated | ( | MiiDatabase * | db, | 
| bool * | out_updated, | ||
| MiiSourceFlag | flag | ||
| ) | 
Returns whether the mii database is updated.
| [in] | db | Database. | 
| [in] | flag | Source flag. | 
| [out] | out_updated | Whether the mii database is updated. | 
| Result miiOpenDatabase | ( | MiiDatabase * | out, | 
| MiiSpecialKeyCode | key_code | ||
| ) | 
Opens a mii database.
| [in] | key_code | Mii key code filter. | 
| [out] | out | Database. |