libnx  v4.8.0
Data Fields
PdmPlayEvent Struct Reference

PlayEvent. More...

#include <pdm.h>

Data Fields

union {
   struct {
      u32   program_id [2]
 ProgramId.
 
      union {
         struct {
            u32   version
 Application version.
 
         }   application
 For AppletId == AppletId_application.
 
         struct {
            u8   flag
 Set to 0x1 by pdm:ntfy cmd8, indicating that the below field is set to an input param.
 
            u8   mode
 Input value from pdm:ntfy cmd8, see LibAppletMode.
 
            u8   pad [2]
 Padding.
 
         }   applet
 For AppletId != AppletId_application.
 
         u32   data
 
      }   unk_x8
 
      u8   applet_id
 AppletId
 
      u8   storage_id
 NcmStorageId
 
      u8   log_policy
 PdmPlayLogPolicy
 
      u8   event_type
 PdmAppletEventType
 
      u8   unused [0xc]
 Unused.
 
   }   applet
 
   struct {
      u32   uid [4]
 userId.
 
      u32   application_id [2]
 ApplicationId, see below.
 
      u8   type
 0-1 to be listed by pdmqryQueryAccountEvent, or 2 to include the above ApplicationId.
 
   }   account
 
   struct {
      u8   value
 Input value from the pdm:ntfy command.
 
      u8   unused [0x1b]
 Unused.
 
   }   power_state_change
 
   struct {
      u8   value
 Input value from the pdm:ntfy command.
 
      u8   unused [0x1b]
 Unused.
 
   }   operation_mode_change
 
   u8   data [0x1c]
 
event_data
 ProgramId/ApplicationId/userId stored within here have the u32 low/high swapped in each u64.
 
u8 play_event_type
 PdmPlayEventType. Controls which struct in the above event_data is used. PdmPlayEventType_Initialize doesn't use event_data.
 
u64 timestamp_user
 PosixTime timestamp from StandardUserSystemClock.
 
u64 timestamp_network
 PosixTime timestamp from StandardNetworkSystemClock.
 
u64 timestamp_steady
 Timestamp in seconds derived from StandardSteadyClock.
 

Detailed Description

PlayEvent.

This is the raw entry struct directly read from FS, without any entry filtering.


The documentation for this struct was generated from the following file: