2014-08-15 16:57:55 +02:00
|
|
|
#pragma once
|
2015-06-19 17:49:38 +02:00
|
|
|
|
2018-02-09 15:49:37 +01:00
|
|
|
|
2015-06-19 17:49:38 +02:00
|
|
|
|
2014-08-23 22:40:04 +02:00
|
|
|
#include "cellRtc.h"
|
2014-08-15 16:57:55 +02:00
|
|
|
|
|
|
|
|
// Constants for TUS functions and structures
|
|
|
|
|
enum
|
|
|
|
|
{
|
|
|
|
|
SCE_NP_TUS_DATA_INFO_MAX_SIZE = 384,
|
|
|
|
|
SCE_NP_TUS_MAX_CTX_NUM = 32,
|
|
|
|
|
SCE_NP_TUS_MAX_SLOT_NUM_PER_TRANS = 64,
|
|
|
|
|
SCE_NP_TUS_MAX_USER_NUM_PER_TRANS = 101,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SceNpOnlineId SceNpTusVirtualUserId;
|
|
|
|
|
|
|
|
|
|
// Structure for representing a TUS variable
|
|
|
|
|
struct SceNpTusVariable
|
|
|
|
|
{
|
|
|
|
|
SceNpId ownerId;
|
|
|
|
|
be_t<s32> hasData;
|
2015-07-26 11:15:15 +02:00
|
|
|
u8 pad[4];
|
2014-08-15 16:57:55 +02:00
|
|
|
CellRtcTick lastChangedDate;
|
|
|
|
|
SceNpId lastChangedAuthorId;
|
|
|
|
|
be_t<s64> variable;
|
|
|
|
|
be_t<s64> oldVariable;
|
2015-07-26 11:15:15 +02:00
|
|
|
u8 reserved[16];
|
2014-08-15 16:57:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Structure for representing the accessory information of a TUS data
|
|
|
|
|
struct SceNpTusDataInfo
|
|
|
|
|
{
|
|
|
|
|
be_t<u32> infoSize;
|
2015-07-26 11:15:15 +02:00
|
|
|
u8 pad[4];
|
2014-08-15 16:57:55 +02:00
|
|
|
u8 data[SCE_NP_TUS_DATA_INFO_MAX_SIZE];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Structure for respreseting the status of TUS data
|
|
|
|
|
struct SceNpTusDataStatus
|
|
|
|
|
{
|
|
|
|
|
SceNpId ownerId;
|
|
|
|
|
be_t<s32> hasData;
|
|
|
|
|
CellRtcTick lastChangedDate;
|
|
|
|
|
SceNpId lastChangedAuthorId;
|
|
|
|
|
be_t<u32> data;
|
|
|
|
|
be_t<u32> dataSize;
|
2015-07-26 11:15:15 +02:00
|
|
|
u8 pad[4];
|
2014-08-15 16:57:55 +02:00
|
|
|
SceNpTusDataInfo info;
|
|
|
|
|
};
|