libnx
Data Structures | Functions
acc.h File Reference

Account (acc:*) service IPC wrapper. More...

#include "../types.h"
#include "sm.h"

Go to the source code of this file.

Data Structures

struct  AccountProfile
 
struct  AccountUserData
 
struct  AccountProfileBase
 

Functions

Result accountInitialize (void)
 
void accountExit (void)
 
ServiceaccountGetService (void)
 
Result accountGetActiveUser (u128 *userID, bool *account_selected)
 Get the userID for the currently active user. More...
 
Result accountGetProfile (AccountProfile *out, u128 userID)
 Get an AccountProfile for the specified userID.
 
Result accountProfileGet (AccountProfile *profile, AccountUserData *userdata, AccountProfileBase *profilebase)
 Get AccountUserData and AccountProfileBase for the specified profile, userdata is optional (can be NULL).
 
Result accountProfileGetImageSize (AccountProfile *profile, size_t *image_size)
 Get the icon image size.
 
Result accountProfileLoadImage (AccountProfile *profile, void *buf, size_t len, size_t *image_size)
 Load the JPEG profile icon, valid for both Miis and character icons. The output image_size is the same as the one from accountProfileGetImageSize.
 
void accountProfileClose (AccountProfile *profile)
 

Detailed Description

Account (acc:*) service IPC wrapper.

Author
yellows8

Function Documentation

Result accountGetActiveUser ( u128 userID,
bool *  account_selected 
)

Get the userID for the currently active user.

The output userID is only valid when the output account_selected==1, otherwise no user is currently selected. An user is only selected when the user-account selection applet was used to select an user at least once before.