vitasdk
Documentation of the vitasdk
lsdb.h File Reference

Go to the source code of this file.

Data Structures

struct  SceLsdbString
 String object used by SceLsdb. More...
 
struct  SceLsdbUtf16String
 UTF-16 string object used by localized SceLsdb records. More...
 
struct  SceLsdbAppDatabase
 Handle passed as the first argument to AppDB functions that require it. More...
 
struct  SceLsdbQueryContext
 Query and change-notification context for the process's shared AppDB. More...
 
struct  SceLsdbAppInfo
 Reference-counted map of AppDB values for one title. More...
 
struct  SceLsdbAppInfoObserver
 Storage for one AppInfo observer in the calling process. More...
 
struct  SceLsdbAppInfoArray
 PAF vector of SceLsdbAppInfo objects. More...
 
struct  SceLsdbInt32Array
 PAF vector of signed 32-bit values used by the AppDB page operations. More...
 
struct  SceLsdbStringArray
 PAF vector of SceLsdbString objects. More...
 
struct  SceLsdbPageInfo
 One row of tbl_appinfo_page. More...
 
struct  SceLsdbPageInfoRef
 Reference-counted AppDB page-information object. More...
 
struct  SceLsdbPageInfoRefArray
 PAF vector of SceLsdbPageInfoRef objects. More...
 
struct  SceLsdbSpecialPageInfo
 Information associated with an icon on a special negative page. More...
 
struct  SceLsdbSpecialPageInfoRef
 Reference-counted SceLsdbSpecialPageInfo object. More...
 
struct  SceLsdbIconInfo
 One row of tbl_appinfo_icon. More...
 
struct  SceLsdbIconInfoRef
 Reference-counted AppDB icon-information object. More...
 
struct  SceLsdbIconInfoRefArray
 PAF vector of SceLsdbIconInfoRef objects. More...
 
struct  SceLsdbIconInfoRefArrayRef
 Reference-counted vector of SceLsdbIconInfoRef objects. More...
 
struct  SceLsdbIconInfoRefArrayRefArray
 PAF vector containing one SceLsdbIconInfoRefArrayRef for each requested AppDB page. More...
 
struct  SceLsdbDbBlobConfig
 Database location and lifetime callback held by a SceLsdbDbBlob. More...
 
struct  SceLsdbDbBlob
 Database-backed PAF stream returned by the blob accessors. More...
 
struct  SceLsdbDbBlobRef
 Reference-counted database blob returned by SceLsdb. More...
 
struct  SceLsdbThemePageLayout
 Fields parsed from one BackgroundParam entry in a Shell theme. More...
 
struct  SceLsdbThemeSystemIconLayout
 One IconParam entry parsed from a Shell theme. More...
 
struct  SceLsdbLocalizedThemeStrings
 Selected and per-language strings parsed from a Shell theme. More...
 
struct  SceLsdbThemeStartScreenLayout
 StartScreenProperty fields parsed from a Shell theme. More...
 
struct  SceLsdbThemeInformationBarLayout
 InfomationBarProperty fields parsed from a Shell theme. More...
 
struct  SceLsdbThemeLayout
 Shell theme-layout object read by sceLsdbUpdateThemeLayout. More...
 
struct  SceLsdbThemeLayoutRef
 Reference-counted shell theme-layout object. More...
 
struct  SceLsdbThemeInfo
 One localized row of tbl_theme. More...
 
struct  SceLsdbValue
 Integer-or-string value stored in tbl_appinfo or tbl_config. More...
 
struct  SceLsdbValueArray
 PAF vector of SceLsdbValue objects. More...
 
struct  SceLsdbAppInfoFilter
 One condition used to filter AppInfo records. More...
 
struct  SceLsdbNewEventDatabase
 NewEvent change-notification wrapper for the calling process. More...
 
struct  SceLsdbNewEventSelector
 Selector accepted by the NewEvent update and deletion operations. More...
 
struct  SceLsdbNewEvent
 One row of the FW 3.60 tbl_newEvent database. More...
 
struct  SceLsdbNewEventRef
 Reference-counted SceLsdbNewEvent object. More...
 
struct  SceLsdbNewEventRefArray
 PAF vector of SceLsdbNewEventRef objects. More...
 
struct  SceLsdbTimeRange
 Start and end RTC ticks used by sceLsdbIsCurrentTimeInRange. More...
 
struct  SceLsdbLiveAreaPccInfo
 PCC state stored in tbl_livearea for one title. More...
 
struct  SceLsdbLiveAreaSfEntry
 One sfType/sfTarg pair stored in tbl_livearea. More...
 
struct  SceLsdbLiveAreaObject
 Common prefix of every object in a parsed LiveArea object list. More...
 
struct  SceLsdbLiveAreaBackgroundImage
 Parsed LiveArea background image. More...
 
struct  SceLsdbLiveAreaSystemFunctionZone
 Parsed system-function-zone entries. More...
 
struct  SceLsdbLiveAreaStartupImage
 Parsed gate startup image. More...
 
struct  SceLsdbLiveAreaTitleColor
 Parsed LiveArea title color, with each component scaled to 0.0 through 1.0. More...
 
struct  SceLsdbLiveAreaObjectListNode
 Node in the parsed LiveArea object list. More...
 
struct  SceLsdbLiveAreaFrameElement
 Common prefix of a parsed target, background, image, or text element. More...
 
struct  SceLsdbLiveAreaVisualElement
 Common prefix of parsed background, image, and text elements. More...
 
struct  SceLsdbLiveAreaTargetElement
 Parsed LiveArea target element. More...
 
struct  SceLsdbLiveAreaBackgroundElement
 Parsed LiveArea background element. More...
 
struct  SceLsdbLiveAreaImageElement
 Parsed LiveArea image element. More...
 
struct  SceLsdbLiveAreaTextElement
 Parsed LiveArea text element. More...
 
struct  SceLsdbLiveAreaFrameItem
 One liveitem parsed from a LiveArea frame. More...
 
struct  SceLsdbLiveAreaFrame
 One parsed row of tbl_livearea_frame. More...
 
struct  SceLsdbLiveAreaFrameList
 Parsed LiveArea template and its list of objects of different types. More...
 
struct  SceLsdbLiveAreaFrameListRef
 Reference-counted SceLsdbLiveAreaFrameList object. More...
 
struct  SceLsdbLiveAreaParser
 State used while parsing one LiveArea template. More...
 
struct  SceLsdbIconLayoutEntry
 Entry stored in ux0:iconlayout.ini. More...
 
union  SceLsdbValue.data
 

Macros

#define SCE_LSDB_THEME_PAGE_LAYOUT_COUNT   10
 
#define SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_COUNT   20
 
#define SCE_LSDB_THEME_LOCALIZED_STRING_COUNT   20
 

Typedefs

typedef void(* SceLsdbAppInfoObserverCallback) (SceLsdbAppInfoEventType event_type, const SceLsdbAppInfo *app_info, void *user_data)
 AppInfo observer callback for the calling process.
 
typedef int(* SceLsdbDbBlobCallback) (SceInt32 phase, SceInt32 mode, void *user_data, void **database_handle)
 Callback used by a database blob to acquire and release its database handle.
 
typedef int(* SceLsdbContentRatingCallback) (SceInt32 *enabled, SceInt32 *rating)
 Callback used to obtain the current content-rating configuration.
 
typedef void(* SceLsdbAppInfoCallback) (const SceLsdbAppInfo *app_info, void *user_data)
 Callback invoked once for each title enumerated by sceLsdbGetAllAppInfo.
 

Enumerations

enum  SceLsdbErrorCode {
  SCE_LSDB_ERROR_OUT_OF_RANGE = 0x80101000 , SCE_LSDB_ERROR_INVALID_ARGUMENT = 0x80101001 , SCE_LSDB_ERROR_NO_MEMORY = 0x80101002 , SCE_LSDB_ERROR_INVALID_HANDLE = 0x80101003 ,
  SCE_LSDB_ERROR_DATABASE_CONSTRAINT = 0x80101004 , SCE_LSDB_ERROR_NOT_FOUND = 0x80101005 , SCE_LSDB_ERROR_INVALID_FILTER = 0x80101007 , SCE_LSDB_ERROR_INVALID_NEW_EVENT_IDENTIFIER = 0x80101008 ,
  SCE_LSDB_ERROR_REQUIRED_APPINFO_FIELD_MISSING = 0x80101009 , SCE_LSDB_ERROR_PAGE_NUMBER_OUT_OF_RANGE = 0x8010100B , SCE_LSDB_ERROR_ICON_POSITION_OCCUPIED = 0x8010100C , SCE_LSDB_ERROR_PROTECTED_APPINFO_KEY = 0x80101011 ,
  SCE_LSDB_ERROR_DATABASE_LANGUAGE_MISMATCH = 0x801010F0 , SCE_LSDB_ERROR_DATABASE_CONFIGURATION_MISMATCH = 0x801010F1 , SCE_LSDB_ERROR_DATABASE_SCHEMA_TOO_NEW = 0x801010F2 , SCE_LSDB_ERROR_DATABASE_VERSION_MISMATCH = 0x801010F3 ,
  SCE_LSDB_ERROR_INVALID_DATABASE_VERSION = 0x801010F4 , SCE_LSDB_ERROR_DATABASE_UNK_F5 = 0x801010F5 , SCE_LSDB_ERROR_DATABASE_UNK_FE = 0x801010FE , SCE_LSDB_ERROR_DATABASE_CORRUPT = 0x801010FF
}
 Errors returned by the FW 3.60 SceLsdb implementation. More...
 
enum  SceLsdbOpenMode { SCE_LSDB_OPEN_MODE_NORMAL = 59 , SCE_LSDB_OPEN_MODE_REBUILD = -59 }
 Values accepted by sceLsdbOpen on FW 3.60. More...
 
enum  SceLsdbExtendedMemoryMode { SCE_LSDB_EXTENDED_MEMORY_MODE_DEFAULT = 0 , SCE_LSDB_EXTENDED_MEMORY_MODE_29_MIB = 1 , SCE_LSDB_EXTENDED_MEMORY_MODE_77_MIB = 2 , SCE_LSDB_EXTENDED_MEMORY_MODE_109_MIB = 3 }
 Extended-memory modes returned by sceLsdbGetExtendedMemoryMode. More...
 
enum  SceLsdbAppInfoEventType { SCE_LSDB_APP_INFO_EVENT_INSERT_APPLICATION = 0 , SCE_LSDB_APP_INFO_EVENT_DELETE_TITLE_DATA = 1 , SCE_LSDB_APP_INFO_EVENT_UPDATE_APPLICATION = 2 , SCE_LSDB_APP_INFO_EVENT_UPDATE_APP_INFO = 3 }
 AppInfo operation reported to an SceLsdbAppInfoObserverCallback. More...
 
enum  SceLsdbIconType { SCE_LSDB_ICON_TYPE_APPLICATION = 0 , SCE_LSDB_ICON_TYPE_FOLDER = 5 , SCE_LSDB_ICON_TYPE_POWER = 6 }
 Known values of SceLsdbIconInfo::type on FW 3.60. More...
 
enum  SceLsdbIcon0Type { SCE_LSDB_ICON0_TYPE_FOLDER = 7 , SCE_LSDB_ICON0_TYPE_POWER = 8 }
 Known values of SceLsdbIconInfo::icon0_type on FW 3.60. More...
 
enum  SceLsdbIconInfoUpdateFlag {
  SCE_LSDB_ICON_INFO_UPDATE_TITLE = 0x00000001 , SCE_LSDB_ICON_INFO_UPDATE_ICON_PATH = 0x00000002 , SCE_LSDB_ICON_INFO_UPDATE_ICON0_TYPE = 0x00000004 , SCE_LSDB_ICON_INFO_UPDATE_COMMAND = 0x00000008 ,
  SCE_LSDB_ICON_INFO_UPDATE_PARENTAL_LOCK_LEVEL = 0x00000010 , SCE_LSDB_ICON_INFO_UPDATE_STATUS = 0x00000020 , SCE_LSDB_ICON_INFO_UPDATE_RENDERED_ICON_BLOB = 0x40000000 , SCE_LSDB_ICON_INFO_UPDATE_ALTERNATE_ICON_PATH = 0x80000000
}
 Field-selection bits accepted by sceLsdbUpdateIconInfo. More...
 
enum  SceLsdbDbBlobCallbackPhase { SCE_LSDB_DB_BLOB_CALLBACK_PHASE_ACQUIRE = 0 , SCE_LSDB_DB_BLOB_CALLBACK_PHASE_RELEASE = 1 }
 
enum  SceLsdbThemeSystemIconLayoutIndex {
  SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_BROWSER = 0 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_VIDEO = 1 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_MUSIC = 2 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_PS3_LINK = 3 ,
  SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_PARTY = 4 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_TROPHY = 5 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_MAP = 6 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_NEAR = 7 ,
  SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_HOST_COLLABO = 8 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_WELCOME_PARK = 9 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_PS4_LINK = 10 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_FRIEND = 11 ,
  SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_EMAIL = 12 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_CALENDAR = 13 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_STORE = 14 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_MESSAGE = 15 ,
  SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_PARENTAL = 16 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_CAMERA = 17 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_SETTINGS = 18 , SCE_LSDB_THEME_SYSTEM_ICON_LAYOUT_POWER = 19
}
 Indices used by SceLsdbThemeLayout::system_icon_layouts on FW 3.60. More...
 
enum  SceLsdbThemeLayoutUpdateFlag { SCE_LSDB_THEME_LAYOUT_UPDATE_SYSTEM_ICONS = 0x1 , SCE_LSDB_THEME_LAYOUT_UPDATE_PAGES = 0x2 }
 Fields selected by sceLsdbUpdateThemeLayout. More...
 
enum  SceLsdbValueType { SCE_LSDB_VALUE_TYPE_INT64 = 0 , SCE_LSDB_VALUE_TYPE_STRING = 1 }
 
enum  SceLsdbFilterOperator { SCE_LSDB_FILTER_OPERATOR_EQUAL = 0 , SCE_LSDB_FILTER_OPERATOR_PREFIX = 1 , SCE_LSDB_FILTER_OPERATOR_NOT_EQUAL = 2 , SCE_LSDB_FILTER_OPERATOR_BITMASK_EQUAL = 3 }
 Comparison performed by an SceLsdbAppInfoFilter node. More...
 
enum  SceLsdbFilterFlags { SCE_LSDB_FILTER_FLAG_APPINFO_ONLY = 0x1 , SCE_LSDB_FILTER_FLAG_INCLUDE_PAGE_MINUS_100000000 = 0x2 , SCE_LSDB_FILTER_FLAG_OMIT_ICON_TITLE_SORT = 0x4 }
 Flags accepted by the filtered-title queries. More...
 
enum  SceLsdbNewEventUpdateFlag {
  SCE_LSDB_NEW_EVENT_UPDATE_FLAG_ICON_PATH = 0x00000001 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_ICON_DATA = 0x00000002 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_MESSAGE = 0x00000004 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_ACTION_TYPE = 0x00000008 ,
  SCE_LSDB_NEW_EVENT_UPDATE_FLAG_TITLE = 0x00000010 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_DESCRIPTION = 0x00000020 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_EXECUTION = 0x00000040 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_NEW_FLAG = 0x00000080 ,
  SCE_LSDB_NEW_EVENT_UPDATE_FLAG_TIME = 0x00000100 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_SOUND = 0x00000200 , SCE_LSDB_NEW_EVENT_UPDATE_FLAG_POPUP = 0x00000400
}
 Field-selection bits accepted by sceLsdbUpdateNewEvents. More...
 
enum  SceLsdbLiveAreaPccUpdateFlag { SCE_LSDB_LIVEAREA_PCC_UPDATE_FLAG_DATE = 0x00000001 , SCE_LSDB_LIVEAREA_PCC_UPDATE_FLAG_RESOURCE_STATUS = 0x00000002 , SCE_LSDB_LIVEAREA_PCC_UPDATE_FLAG_SIGN_OFF = 0x00000004 }
 Fields selected by sceLsdbUpdateLiveAreaPccInfo. More...
 
enum  SceLsdbLiveAreaChangeFlag {
  SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_1 = 0x00000001 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_2 = 0x00000002 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_3 = 0x00000004 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_4 = 0x00000008 ,
  SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_5 = 0x00000010 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_6 = 0x00000020 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_7 = 0x00000040 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_8 = 0x00000080 ,
  SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_9 = 0x00000100 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_FRAME_10 = 0x00000200 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_BACKGROUND_IMAGE = 0x00010000 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_SYSTEM_FUNCTION_ZONE = 0x00020000 ,
  SCE_LSDB_LIVEAREA_CHANGE_FLAG_STARTUP_IMAGE = 0x00040000 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_TITLE_COLOR = 0x00080000 , SCE_LSDB_LIVEAREA_CHANGE_FLAG_STYLE = 0x00100000
}
 Change bits returned by the LiveArea replacement and frame-update exports. More...
 
enum  SceLsdbLiveAreaObjectType {
  SCE_LSDB_LIVEAREA_OBJECT_TYPE_BACKGROUND_IMAGE = 1 , SCE_LSDB_LIVEAREA_OBJECT_TYPE_SYSTEM_FUNCTION_ZONE = 2 , SCE_LSDB_LIVEAREA_OBJECT_TYPE_STARTUP_IMAGE = 3 , SCE_LSDB_LIVEAREA_OBJECT_TYPE_FRAME = 4 ,
  SCE_LSDB_LIVEAREA_OBJECT_TYPE_TITLE_COLOR = 5
}
 Object types stored in a parsed LiveArea frame list. More...
 
enum  SceLsdbLiveAreaFrameElementType { SCE_LSDB_LIVEAREA_FRAME_ELEMENT_TYPE_TARGET = 3 , SCE_LSDB_LIVEAREA_FRAME_ELEMENT_TYPE_BACKGROUND = 4 , SCE_LSDB_LIVEAREA_FRAME_ELEMENT_TYPE_IMAGE = 5 , SCE_LSDB_LIVEAREA_FRAME_ELEMENT_TYPE_TEXT = 6 }
 Element types stored in a parsed LiveArea frame item. More...
 
enum  SceLsdbLiveAreaHorizontalAlignment {
  SCE_LSDB_LIVEAREA_HORIZONTAL_ALIGNMENT_CENTER = 0 , SCE_LSDB_LIVEAREA_HORIZONTAL_ALIGNMENT_LEFT = 1 , SCE_LSDB_LIVEAREA_HORIZONTAL_ALIGNMENT_RIGHT = 2 , SCE_LSDB_LIVEAREA_HORIZONTAL_ALIGNMENT_OUTSIDE_LEFT = 3 ,
  SCE_LSDB_LIVEAREA_HORIZONTAL_ALIGNMENT_OUTSIDE_RIGHT = 4
}
 Horizontal alignment values used by parsed LiveArea visual elements. More...
 
enum  SceLsdbLiveAreaVerticalAlignment {
  SCE_LSDB_LIVEAREA_VERTICAL_ALIGNMENT_CENTER = 0 , SCE_LSDB_LIVEAREA_VERTICAL_ALIGNMENT_TOP = 1 , SCE_LSDB_LIVEAREA_VERTICAL_ALIGNMENT_BOTTOM = 2 , SCE_LSDB_LIVEAREA_VERTICAL_ALIGNMENT_OUTSIDE_TOP = 3 ,
  SCE_LSDB_LIVEAREA_VERTICAL_ALIGNMENT_OUTSIDE_BOTTOM = 4
}
 Vertical alignment values used by parsed LiveArea visual elements. More...
 
enum  SceLsdbLiveAreaElementOrigin { SCE_LSDB_LIVEAREA_ELEMENT_ORIGIN_FRAME = 2 , SCE_LSDB_LIVEAREA_ELEMENT_ORIGIN_BACKGROUND = 4 , SCE_LSDB_LIVEAREA_ELEMENT_ORIGIN_IMAGE = 5 }
 Coordinate origin accepted by parsed LiveArea image and text elements. More...
 
enum  SceLsdbLiveAreaFrameMultiMode { SCE_LSDB_LIVEAREA_FRAME_MULTI_MODE_ORDERED = 0 , SCE_LSDB_LIVEAREA_FRAME_MULTI_MODE_RANDOM = 1 }
 Selection mode derived from a LiveArea frame's multi attribute. More...
 
enum  SceLsdbLiveAreaCompatibilityMode { SCE_LSDB_LIVEAREA_COMPATIBILITY_MODE_ANY = 0 , SCE_LSDB_LIVEAREA_COMPATIBILITY_MODE_UNSPECIFIED = 1 , SCE_LSDB_LIVEAREA_COMPATIBILITY_MODE_ON = 2 , SCE_LSDB_LIVEAREA_COMPATIBILITY_MODE_OFF = 3 }
 Compatibility selector used for a LiveArea liveitem's pokesute attribute. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbString)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbUtf16String)
 
 VITASDK_BUILD_ASSERT_EQ (0x4, SceLsdbAppDatabase)
 
 VITASDK_BUILD_ASSERT_EQ (0x4, SceLsdbQueryContext)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbAppInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbAppInfoObserver)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbAppInfoArray)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbInt32Array)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbStringArray)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceLsdbPageInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbPageInfoRef)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbPageInfoRefArray)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceLsdbSpecialPageInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbSpecialPageInfoRef)
 
 VITASDK_BUILD_ASSERT_EQ (0x58, SceLsdbIconInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbIconInfoRef)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbIconInfoRefArray)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbIconInfoRefArrayRef)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbIconInfoRefArrayRefArray)
 
struct SceLsdbDbBlobConfig __attribute__ ((packed, aligned(4))) SceLsdbDbBlobConfig
 Database location and lifetime callback held by a SceLsdbDbBlob.
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceLsdbDbBlobConfig)
 
 VITASDK_BUILD_ASSERT_EQ (0x38, SceLsdbDbBlob)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbDbBlobRef)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceLsdbThemePageLayout)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceLsdbThemeSystemIconLayout)
 
 VITASDK_BUILD_ASSERT_EQ (0xFC, SceLsdbLocalizedThemeStrings)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceLsdbThemeStartScreenLayout)
 
 VITASDK_BUILD_ASSERT_EQ (0x28, SceLsdbThemeInformationBarLayout)
 
 VITASDK_BUILD_ASSERT_EQ (0x5B0, SceLsdbThemeLayout)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbThemeLayoutRef)
 
 VITASDK_BUILD_ASSERT_EQ (0x64, SceLsdbThemeInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceLsdbValue)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbValueArray)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceLsdbAppInfoFilter)
 
 VITASDK_BUILD_ASSERT_EQ (0x4, SceLsdbNewEventDatabase)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceLsdbNewEventSelector)
 
 VITASDK_BUILD_ASSERT_EQ (0x100, SceLsdbNewEvent)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbNewEventRef)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbNewEventRefArray)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceLsdbTimeRange)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceLsdbLiveAreaPccInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceLsdbLiveAreaSfEntry)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbLiveAreaObject)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceLsdbLiveAreaBackgroundImage)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceLsdbLiveAreaSystemFunctionZone)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceLsdbLiveAreaStartupImage)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceLsdbLiveAreaTitleColor)
 
 VITASDK_BUILD_ASSERT_EQ (0xC, SceLsdbLiveAreaObjectListNode)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbLiveAreaFrameElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceLsdbLiveAreaVisualElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceLsdbLiveAreaTargetElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x30, SceLsdbLiveAreaBackgroundElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x34, SceLsdbLiveAreaImageElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x70, SceLsdbLiveAreaTextElement)
 
 VITASDK_BUILD_ASSERT_EQ (0x30, SceLsdbLiveAreaFrameItem)
 
 VITASDK_BUILD_ASSERT_EQ (0x48, SceLsdbLiveAreaFrame)
 
 VITASDK_BUILD_ASSERT_EQ (0x38, SceLsdbLiveAreaFrameList)
 
 VITASDK_BUILD_ASSERT_EQ (0x8, SceLsdbLiveAreaFrameListRef)
 
 VITASDK_BUILD_ASSERT_EQ (0x3C, SceLsdbLiveAreaParser)
 
 VITASDK_BUILD_ASSERT_EQ (0x18, SceLsdbIconLayoutEntry)
 
SceLsdbAppDatabase * sceLsdbAppDatabaseInit (SceLsdbAppDatabase *database)
 Initialize an AppDB wrapper.
 
SceLsdbAppDatabase * sceLsdbAppDatabaseInit2 (SceLsdbAppDatabase *database)
 
SceLsdbAppDatabase * sceLsdbAppDatabaseEnd (SceLsdbAppDatabase *database)
 Release an AppDB wrapper's ownership token.
 
SceLsdbAppDatabase * sceLsdbAppDatabaseEnd2 (SceLsdbAppDatabase *database)
 
int sceLsdbGetIconsInPageRange (SceLsdbAppDatabase *database, SceInt32 first_page_no, SceSize page_count, SceLsdbIconInfoRefArrayRefArray *icons_by_page)
 Query icon records for consecutive AppDB pages.
 
int sceLsdbGetPageInfo (SceLsdbAppDatabase *database, SceInt32 first_page_no, SceSize page_count, SceLsdbPageInfoRefArray *pages)
 Query page_count consecutive page records beginning at first_page_no.
 
int sceLsdbReplaceIconsInPages (SceLsdbAppDatabase *database, const SceLsdbInt32Array *page_nos, const SceLsdbIconInfoRefArrayRefArray *icons_by_page)
 Replace all icon records on one or more pages.
 
int sceLsdbUpdateIconInfo (SceLsdbAppDatabase *database, SceInt32 page_no, const SceLsdbIconInfoRef *icon_info, SceUInt32 update_mask, const void *icon_data, SceSize icon_data_size)
 Update selected fields of one icon record.
 
int sceLsdbInsertIcon (SceLsdbAppDatabase *database, SceInt32 page_no, const SceLsdbIconInfoRef *icon_info)
 Insert one icon record on page_no.
 
int sceLsdbDeleteIconByTitleId (SceLsdbAppDatabase *database, const SceLsdbString *title_id)
 Delete the icon record belonging to title_id.
 
int sceLsdbMoveIcons (SceLsdbAppDatabase *database, const SceLsdbInt32Array *source_page_nos, const SceLsdbInt32Array *source_positions, const SceLsdbInt32Array *destination_page_nos, const SceLsdbInt32Array *destination_positions)
 Move corresponding source page/position entries to their destinations.
 
SceLsdbDbBlobRef sceLsdbGetIconReservedBlob (SceLsdbAppDatabase *database, const SceInt64 *row_id, int *error)
 Return the reference-counted blob in tbl_appinfo_icon.reserved05 for the supplied SQLite row ID.
 
int sceLsdbUpdatePages (SceLsdbAppDatabase *database, const SceLsdbInt32Array *page_nos, const SceLsdbPageInfoRefArray *pages)
 Update one or more AppDB page records.
 
int sceLsdbInsertPage (SceLsdbAppDatabase *database, SceInt32 page_no, const SceLsdbIconInfoRefArray *icons, const SceLsdbPageInfo *page_info)
 Insert a nonnegative page record followed by its icon records.
 
int sceLsdbDeletePage (SceLsdbAppDatabase *database, SceInt32 page_no)
 Delete a nonnegative or special negative page.
 
int sceLsdbInsertIconWithParent (SceLsdbAppDatabase *database, SceInt32 page_no, const SceLsdbIconInfoRef *child_icon_info, const SceLsdbIconInfoRef *folder_icon_info, const void *icon_data, SceSize icon_data_size)
 Create a folder icon around an existing child icon.
 
int sceLsdbGetPageCount (SceLsdbAppDatabase *database)
 Return the number of nonnegative AppInfo pages.
 
int sceLsdbGetIconCountInPageRange (SceLsdbAppDatabase *database, SceInt32 first_page_no, SceSize page_count)
 Count icons on page_count consecutive pages beginning at first_page_no.
 
int sceLsdbGetCountedIconCount (SceLsdbAppDatabase *database)
 Count icons which count against the Shell top-level icon limit.
 
int sceLsdbGetFolderPageNosByTitle (SceLsdbAppDatabase *database, const SceLsdbString *title, SceLsdbInt32Array *page_nos)
 Return folder child-page numbers for a localized bubble title.
 
int sceLsdbGetAppInfoFromDatabase (SceLsdbAppDatabase *database, const SceLsdbString *title_id, SceLsdbAppInfo *app_info)
 Load all AppInfo values for one title through an AppDB wrapper.
 
int sceLsdbGetAppInfoValueFromDatabase (SceLsdbAppDatabase *database, const SceLsdbString *title_id, SceUInt32 key, SceLsdbValue *value)
 Read one typed AppInfo value through an AppDB wrapper.
 
int sceLsdbAppInfoExists (SceLsdbAppDatabase *database, const SceLsdbString *title_id)
 Return nonzero when tbl_appinfo contains at least one row for title_id.
 
int sceLsdbGetIconInfoByTitleId (SceLsdbAppDatabase *database, const SceLsdbString *title_id, SceLsdbIconInfoRef *icon_info, SceInt32 *page_no, SceBool use_fallback)
 Read icon information for title_id.
 
int sceLsdbGetIconInfoById (SceLsdbAppDatabase *database, const SceInt32 *reserved01, SceInt32 *page_no, SceLsdbIconInfoRef *icon_info)
 Read the first icon record whose tbl_appinfo_icon.reserved01 equals the signed 32-bit value at reserved01.
 
int sceLsdbGetFilteredTitleIdsFromDatabase (SceLsdbAppDatabase *database, const SceLsdbAppInfoFilter *filter, SceLsdbStringArray *title_ids, SceUInt32 flags)
 Return title IDs matching a chain of AppInfo filters.
 
int sceLsdbGetRecentlyUsedTitleIdsByCategoriesFromDatabase (SceLsdbAppDatabase *database, const char *const *categories, SceSize category_count, SceInt32 max_title_count, SceLsdbStringArray *title_ids)
 Return recently used titles in any requested application category.
 
int sceLsdbResolveUriTitleIdFromDatabase (SceLsdbAppDatabase *database, const char *uri, SceLsdbString *title_id, SceUInt32 flags)
 Resolve a URI to the title whose registered host/path is its longest prefix.
 
int sceLsdbGetUriPrefixesFromDatabase (SceLsdbAppDatabase *database, const char *const *schemes, SceSize scheme_count, SceLsdbStringArray *uri_prefixes)
 Collect distinct scheme:host/path prefixes for the requested schemes.
 
int sceLsdbInsertApplication (SceLsdbAppDatabase *database, const SceLsdbAppInfo *app_info, SceInt32 page_no, const SceLsdbIconInfoRef *icon_info, const SceLsdbAppInfoArray *additional_app_info)
 Insert the AppInfo, icon, URI, and icon-layout records for one application.
 
int sceLsdbDeleteTitleData (SceLsdbAppDatabase *database, const SceLsdbString *title_id, SceBool delete_special_page, SceInt32 *page_no)
 Delete all AppDB data belonging to title_id.
 
int sceLsdbUpdateApplication (SceLsdbAppDatabase *database, const SceLsdbAppInfo *app_info, const SceLsdbIconInfoRef *icon_info, const SceLsdbAppInfoArray *additional_app_info)
 Update the AppInfo, icon, and URI records for one application.
 
int sceLsdbReplaceApplication (SceLsdbAppDatabase *database, const SceLsdbAppInfo *app_info, const SceLsdbIconInfoRef *icon_info, SceBool update_icon_title, const SceLsdbAppInfoArray *additional_app_info)
 Replace the AppInfo and URI records for one application.
 
int sceLsdbSetAppInfoValueMaskedFromDatabase (SceLsdbAppDatabase *database, const SceLsdbString *title_id, SceUInt32 key, const SceLsdbValue *value, SceUInt64 mask)
 Update a title's AppInfo value using a mask through an AppDB wrapper.
 
SceLsdbString sceLsdbGetConfigStringFromDatabase (SceLsdbAppDatabase *database, SceUInt32 key, const char *default_value)
 Return a standalone config string, or a copied default_value when the key or the process's shared database is unavailable.
 
SceInt64 sceLsdbGetConfigInt64FromDatabase (SceLsdbAppDatabase *database, SceUInt32 key, SceInt64 default_value)
 Return a 64-bit config value, or default_value when the key or the process's shared database is unavailable.
 
int sceLsdbSetConfigStringFromDatabase (SceLsdbAppDatabase *database, SceUInt32 key, const char *value)
 Store or replace a string in tbl_config through the process's shared AppDB.
 
int sceLsdbSetConfigInt64MaskedFromDatabase (SceLsdbAppDatabase *database, SceUInt32 key, SceInt64 value, SceUInt64 mask)
 Update an integer tbl_config value using a mask through an AppDB wrapper.
 
int sceLsdbUpdateThemeLayout (SceLsdbAppDatabase *database, const SceLsdbThemeLayoutRef *layout, SceUInt32 update_flags)
 Update page and system-icon rows from a Shell theme-layout object.
 
int sceLsdbReplaceTheme (SceLsdbAppDatabase *database, const SceLsdbThemeInfo *theme_info, const SceLsdbLocalizedThemeStrings *localized_titles, const SceLsdbLocalizedThemeStrings *localized_providers)
 Replace or insert one theme record and its localized strings.
 
int sceLsdbDeleteTheme (SceLsdbAppDatabase *database, const SceLsdbString *theme_id)
 Delete one theme record.
 
int sceLsdbDeleteAllThemes (SceLsdbAppDatabase *database)
 Delete all theme records.
 
int sceLsdbGetThemeCount (SceLsdbAppDatabase *database)
 Return the number of theme records.
 
int sceLsdbAppDatabaseBeginTransaction (SceLsdbAppDatabase *database)
 Begin an AppDB transaction through a wrapper.
 
int sceLsdbAppDatabaseEndTransaction (SceLsdbAppDatabase *database, SceInt32 database_version_or_rollback)
 End an AppDB transaction through a wrapper.
 
int sceLsdbGetAllAppInfo (SceLsdbAppDatabase *database, SceLsdbAppInfoCallback callback, void *user_data)
 Enumerate all AppInfo objects ordered by title ID.
 
int sceLsdbRegisterAppInfoObserver (SceLsdbAppInfoObserver *observer, SceLsdbAppInfoObserverCallback callback, void *user_data)
 Register an AppInfo observer for the calling process.
 
int sceLsdbUnregisterAppInfoObserver (SceLsdbAppInfoObserver *observer)
 Unregister an AppInfo observer in the calling process and clear its two fields.
 
SceLsdbQueryContext * sceLsdbQueryContextInit (SceLsdbQueryContext *context)
 Initialize a query context without attaching it to the database.
 
SceLsdbQueryContext * sceLsdbQueryContextInit2 (SceLsdbQueryContext *context)
 
int sceLsdbQueryContextClose (SceLsdbQueryContext *context)
 Stop a query context from receiving the process's AppDB change notifications.
 
SceLsdbQueryContext * sceLsdbQueryContextEnd (SceLsdbQueryContext *context)
 Detach and release a query-context object.
 
SceLsdbQueryContext * sceLsdbQueryContextEnd2 (SceLsdbQueryContext *context)
 
int sceLsdbQueryContextOpen (SceLsdbQueryContext *context)
 Attach a query context to the process's already-open shared AppDB.
 
int sceLsdbQueryGetAppInfo (SceLsdbQueryContext *context, const SceLsdbString *title_id, SceLsdbAppInfo *app_info)
 Load all AppInfo values for one title.
 
int sceLsdbQueryGetAppInfoValue (SceLsdbQueryContext *context, const SceLsdbString *title_id, SceUInt32 key, SceLsdbValue *value)
 Read one typed AppInfo value.
 
int sceLsdbQueryAppInfoExists (SceLsdbQueryContext *context, const SceLsdbString *title_id)
 Return nonzero when a title has AppInfo rows.
 
int sceLsdbQueryGetIconInfo (SceLsdbQueryContext *context, const SceLsdbString *title_id, SceLsdbIconInfoRef *icon_info, SceBool use_fallback)
 Read icon information for a title through a query context.
 
int sceLsdbQueryGetFilteredTitleIds (SceLsdbQueryContext *context, const SceLsdbAppInfoFilter *filter, SceLsdbStringArray *title_ids, SceUInt32 flags)
 Return title IDs matching a chain of AppInfo filters.
 
int sceLsdbQueryGetRecentlyUsedTitleIdsByCategories (SceLsdbQueryContext *context, const char *const *categories, SceSize category_count, SceInt32 max_title_count, SceLsdbStringArray *title_ids)
 Return recently used titles in any requested application category.
 
int sceLsdbQueryResolveUriTitleId (SceLsdbQueryContext *context, const char *uri, SceLsdbString *title_id, SceUInt32 flags)
 Resolve a URI through the process's shared AppDB connection.
 
int sceLsdbQueryGetUriPrefixes (SceLsdbQueryContext *context, const char *const *schemes, SceSize scheme_count, SceLsdbStringArray *uri_prefixes)
 Collect distinct URI prefixes through the process's shared AppDB connection.
 
SceLsdbString sceLsdbQueryGetConfigString (SceLsdbQueryContext *context, SceUInt32 key, const char *default_value)
 Return a standalone config string, or a copied default_value when the key is absent or the query context is detached.
 
SceInt64 sceLsdbQueryGetConfigInt64 (SceLsdbQueryContext *context, SceUInt32 key, SceInt64 default_value)
 Return a 64-bit config value, or default_value when the key is absent or the context is detached.
 
int sceLsdbQueryContextTestAndClearFlag (SceLsdbQueryContext *context, SceBool clear)
 Test the query-context AppInfo-change flag and optionally clear it.
 
int sceLsdbQueryGetThemeIds (SceLsdbQueryContext *context, SceLsdbStringArray *theme_ids)
 Return theme IDs ordered by descending modification time.
 
int sceLsdbQueryGetTheme (SceLsdbQueryContext *context, const SceLsdbString *theme_id, SceInt32 language_index, SceLsdbThemeInfo *theme_info)
 Read one localized theme record.
 
SceInt64 sceLsdbQueryGetTotalThemeSize (SceLsdbQueryContext *context)
 Return the sum of tbl_theme.size.
 
int sceLsdbSetAppInfoValueMasked (const SceLsdbString *title_id, SceUInt32 key, const SceLsdbValue *value, SceUInt64 mask)
 Update a title's AppInfo value using a mask.
 
int sceLsdbGetAppInfoValue (const SceLsdbString *title_id, SceUInt32 key, SceLsdbValue *value)
 Read one AppInfo value through the process's shared AppDB connection.
 
int sceLsdbSetConfigString (SceUInt32 key, const char *value)
 Store a string in tbl_config through the process's shared AppDB connection.
 
int sceLsdbSetConfigInt64Masked (SceUInt32 key, SceInt64 value, SceUInt64 mask)
 Update an integer tbl_config value using a mask.
 
int sceLsdbRefreshAppInfo (const SceLsdbAppInfo *app_info)
 Refresh the AppDB rows derived from an AppInfo object.
 
SceUInt32 sceLsdbGetStitleKeyForLanguage (SceInt32 language_index)
 Return the FNV-1a key for STITLE or STITLE_00 through STITLE_19.
 
const char * sceLsdbGetStitle (const SceLsdbAppInfo *app_info)
 AppInfo field accessors.
 
const char * sceLsdbGetTitle (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetLiveAreaContentsPath (const SceLsdbAppInfo *app_info)
 Return the per-title #_livearea_path AppInfo string.
 
const char * sceLsdbGetOriginalPath (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetAttribute (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetLiveAreaType (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetTotalMemoryBudget (const SceLsdbAppInfo *app_info)
 Return the SELF type-6 total memory budget in 1-KiB units.
 
const char * sceLsdbGetCategory (const SceLsdbAppInfo *app_info)
 
int sceLsdbIsCategoryGda (const SceLsdbAppInfo *app_info)
 Return nonzero when CATEGORY is gda.
 
SceInt64 sceLsdbGetPromoteAttribute (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetName (const SceLsdbAppInfo *app_info)
 Return the AppMgr application name stored in AppInfo.
 
const char * sceLsdbGetForegroundTitleId (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetBackgroundTitleId (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetTitleId (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetShellApplicationType (const SceLsdbAppInfo *app_info)
 Return SceShell's application-type classification.
 
const char * sceLsdbGetSelfPath (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetPhysicalContiguousMemoryBudget (const SceLsdbAppInfo *app_info)
 Return the SELF type-6 physically contiguous memory budget in 1-KiB units.
 
SceInt64 sceLsdbGetBootParamAttribute (const SceLsdbAppInfo *app_info)
 Return the attribute word from the SELF type-6 boot parameters.
 
const char * sceLsdbGetAppVer (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetContentId (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetNpCommunicationId (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetSystemVersion (const SceLsdbAppInfo *app_info)
 
SceInt32 sceLsdbGetType (const SceLsdbAppInfo *app_info)
 Query game_plugin's application-type classification for app_info.
 
SceInt32 sceLsdbGetAppMetadataLocationType (const SceLsdbAppInfo *app_info)
 Query game_plugin's metadata-location classification for app_info.
 
const char * sceLsdbGetDiscId (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetGameDataId (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetParentalLevel (const SceLsdbAppInfo *app_info)
 Return PARENTAL_LEVEL, or -1 when it is absent or is not an integer.
 
SceInt64 sceLsdbGetBootable (const SceLsdbAppInfo *app_info)
 Return BOOTABLE, or -1 when it is absent or is not an integer.
 
SceUInt32 sceLsdbGetLiveAreaSystemVersion (const SceLsdbAppInfo *app_info)
 Return the LiveArea system-version value stored in ATTRIBUTE bits 13 and 14.
 
SceUInt32 sceLsdbGetLiveAreaActivityDisabled (const SceLsdbAppInfo *app_info)
 Get the flag that disables Shell's LiveArea activities for a title.
 
const char * sceLsdbGetBootInstallDir (const SceLsdbAppInfo *app_info)
 
int sceLsdbIsGameCategoryOrLiveAreaSystemVersion1Or2 (const SceLsdbAppInfo *app_info)
 Return nonzero for a game category or LiveArea system-version value 1 or 2.
 
int sceLsdbIsGameOrEgCategory (const SceLsdbAppInfo *app_info)
 Return nonzero for a game category or the EG category.
 
int sceLsdbIsLiveAreaActivitySupported (const SceLsdbAppInfo *app_info)
 Check whether a title supports Shell's LiveArea activities.
 
const char * sceLsdbGetContentLocation (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetPic0Path (const SceLsdbAppInfo *app_info)
 Return the resolved path to the application's sce_sys/pic0.png image.
 
int sceLsdbGetLiveAreaPreviewDisabled (const SceLsdbAppInfo *app_info)
 Get the flag that disables Shell's cached application preview in LiveArea.
 
const char * sceLsdbGetLastLaunchTime (const SceLsdbAppInfo *app_info)
 
SceInt64 sceLsdbGetUpdateStatus (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetSupportUri (const SceLsdbAppInfo *app_info)
 
const char * sceLsdbGetInstallDirSavedataAdd1 (const SceLsdbAppInfo *app_info)
 Return the INSTALL_DIR_SAVEDATA_ADD_1 AppInfo string.
 
SceInt64 sceLsdbGetExtendedMemoryMode (const SceLsdbAppInfo *app_info)
 Get the requested extended game-memory mode.
 
SceLsdbLiveAreaCompatibilityMode sceLsdbGetLiveAreaCompatibilityMode (const char *title_id)
 Select the LiveArea compatibility mode for title_id.
 
int sceLsdbOpen (SceLsdbOpenMode mode)
 Open the process's shared AppDB connection.
 
int sceLsdbClose (void)
 Close the process's shared AppDB connection and release its model helpers.
 
int sceLsdbReopen (void)
 Replace the process's shared on-disk AppDB connection with an in-memory database.
 
int sceLsdbUpdateLocalizedData (SceInt32 language_index)
 Rebuild localized AppInfo and LiveArea data for a language index.
 
SceInt32 sceLsdbGetDatabaseLanguageIndex (void)
 Return the language index stored in the open Activity database.
 
int sceLsdbResetNewEventsAndLiveArea (void)
 Delete every NewEvent row and rebuild every LiveArea row from its stored contents path.
 
int sceLsdbGetLastAppDatabaseError (void)
 Return the AppInfo daemon's most recently recorded AppDB error.
 
SceLsdbString sceLsdbGetLiveAreaPath (void)
 Return tbl_config key 1 as a standalone string.
 
int sceLsdbSetLiveAreaPath (const SceLsdbString *value)
 Store value in tbl_config key 1, the LiveArea path shared by the process.
 
SceInt32 sceLsdbGetSystemLanguageIndex (void)
 Return the shell's current system-language index, or 1 when unavailable.
 
SceLsdbString sceLsdbGetRegion (void)
 Return the configured system region as a standalone string.
 
SceInt32 sceLsdbMapLanguageIndex (SceUInt32 live_area_system_version, SceInt32 language_index)
 Select the language index used to parse LiveArea content.
 
SceLsdbString sceLsdbGetNpLanguage (void)
 Return /CONFIG/NP/lang as a standalone string.
 
SceLsdbString sceLsdbGetCountry (SceUInt32 live_area_system_version)
 Return the country used to select localized LiveArea content.
 
SceBool sceLsdbNormalizeBool (SceInt32 value)
 Convert an integer to 0 or 1.
 
SceLsdbContentRatingCallback sceLsdbSetContentRatingCallback (SceLsdbContentRatingCallback callback)
 Install the callback used when obtaining content-rating information.
 
SceInt32 sceLsdbGetUserContentRating (void)
 Return the current user's content-rating limit or age.
 
SceLsdbString sceLsdbGetNpEnvironment (void)
 Return /CONFIG/NP/env as a standalone string.
 
SceLsdbNewEventDatabase * sceLsdbNewEventDatabaseInit (SceLsdbNewEventDatabase *database)
 Initialize a NewEvent notification wrapper without attaching it to the database.
 
SceLsdbNewEventDatabase * sceLsdbNewEventDatabaseInit2 (SceLsdbNewEventDatabase *database)
 
int sceLsdbNewEventDatabaseOpen (SceLsdbNewEventDatabase *database)
 Attach a NewEvent notification wrapper to the process's shared database.
 
int sceLsdbNewEventDatabaseClose (SceLsdbNewEventDatabase *database)
 Detach a NewEvent notification wrapper and release its flag.
 
int sceLsdbInsertNewEvent (SceLsdbNewEvent *event, SceBool replace_existing)
 Insert one NewEvent row.
 
int sceLsdbUpdateNewEvents (const SceLsdbNewEventRef *events, SceSize count, SceUInt32 update_mask)
 Update selected fields of existing, nondeleted NewEvent rows.
 
int sceLsdbMarkNewEventsDeleted (const SceLsdbNewEventSelector *selectors, SceSize count)
 Mark selected nondeleted events as deleted.
 
int sceLsdbDeleteNewEvents (SceUInt8 selective)
 Delete NewEvent rows.
 
int sceLsdbGetNewEvent (SceLsdbNewEventDatabase *database, SceLsdbNewEvent *event)
 Read one nondeleted NewEvent row.
 
int sceLsdbGetNewEvents (SceLsdbNewEventDatabase *database, SceLsdbNewEventRefArray *events, SceSize max_count, SceSize *total_count, SceSize *new_count, SceBool clear_notification)
 Enumerate nondeleted NewEvent rows.
 
SceLsdbDbBlobRef sceLsdbGetNewEventIconData (SceLsdbNewEventDatabase *database, const SceInt64 *row_id, int *error)
 Return the read-only icon-data BLOB for an existing NewEvent row ID.
 
SceBool sceLsdbHasPendingNewEventNotification (SceLsdbNewEventDatabase *database)
 Return whether this wrapper's change flag for the calling process is set.
 
void sceLsdbClearPendingNewEventNotification (SceLsdbNewEventDatabase *database)
 Clear the calling process's pending NewEvent notification state.
 
int sceLsdbGetNewEventPopupCount (SceLsdbNewEventDatabase *database)
 Return the number of rows whose popup number is nonzero.
 
int sceLsdbGetFirstPopupNewEvent (SceLsdbNewEventDatabase *database, SceLsdbNewEvent *event)
 Read the row with the smallest positive popup number.
 
int sceLsdbClearNewEventPopup (SceLsdbNewEventDatabase *database, const SceInt64 *row_id)
 Set popup_no to zero for the selected row.
 
int sceLsdbClearNewEventPopups (SceLsdbNewEventDatabase *database)
 Set popup_no to zero for all rows.
 
int sceLsdbUpdateNewEventFlags (SceLsdbNewEventDatabase *database, const SceLsdbNewEventRef *events, SceSize count)
 Update new_flag for an array of existing, nondeleted NewEvent rows.
 
int sceLsdbClearNewEventFlags (SceLsdbNewEventDatabase *database)
 Clear new_flag and increment hash for every new row.
 
SceUInt32 sceLsdbGetNewEventActionTypeHigh (SceLsdbNewEventDatabase *database, const SceLsdbString *title_id)
 Derive the high 32 bits of a NewEvent action type for title_id.
 
SceBool sceLsdbIsCurrentTimeInRange (const SceLsdbTimeRange *range, SceBool ignore_start_time, SceBool use_ad_network_clock)
 Test a time interval against the current RTC or ad-network clock.
 
SceLsdbLiveAreaFrame * sceLsdbLiveAreaFrameInit (SceLsdbLiveAreaFrame *frame)
 Initialize caller-provided storage for one parsed LiveArea frame.
 
SceLsdbLiveAreaFrameItem * sceLsdbLiveAreaFrameGetItem (const SceLsdbLiveAreaFrame *frame, SceSize index)
 Return one indexed liveitem from a parsed frame, or NULL.
 
SceLsdbLiveAreaFrameList * sceLsdbLiveAreaFrameListInit (SceLsdbLiveAreaFrameList *frame_list)
 Initialize caller-provided storage for an empty parsed LiveArea object list.
 
SceLsdbLiveAreaFrameList * sceLsdbLiveAreaFrameListEnd (SceLsdbLiveAreaFrameList *frame_list)
 Destroy every object and list node owned by a parsed LiveArea frame list.
 
SceInt32 sceLsdbParseVersion (const SceLsdbString *version)
 Parse an exact NN.NN version string.
 
SceInt32 sceLsdbParseVersion2 (const SceLsdbString *version)
 
SceLsdbLiveAreaParser * sceLsdbLiveAreaParserInit (SceLsdbLiveAreaParser *parser, const char *contents_path, SceBool filter_hardware_model, SceBool fallback_to_default_template)
 Initialize a LiveArea parser for contents_path.
 
SceLsdbLiveAreaParser * sceLsdbLiveAreaParserEnd (SceLsdbLiveAreaParser *parser)
 Release a LiveArea parser.
 
int sceLsdbParseLiveAreaTemplate (SceLsdbLiveAreaParser *parser)
 Parse the template selected by parser into a reference-counted frame list.
 
SceBool sceLsdbLiveAreaParserSetLocale (SceLsdbLiveAreaParser *parser, const SceInt32 *language_index, const char *country, SceInt32 content_rating)
 Apply locale and content-rating selection to a parsed template.
 
SceBool sceLsdbLiveAreaParserSetDefaultTemplate (SceLsdbLiveAreaParser *parser)
 Select the built-in default template in an initialized LiveArea parser.
 
int sceLsdbGetCurrentRtcTick (SceRtcTick *tick)
 Read the current RTC tick.
 
int sceLsdbGetAdNetworkRtcTick (SceRtcTick *tick)
 Read the ad-network RTC tick.
 
SceBool sceLsdbParseLiveAreaFrame (SceLsdbLiveAreaFrame **frame, const void *xml, SceSize xml_length, const SceInt32 *language_index, const char *country, SceInt32 content_rating, SceBool filter_hardware_model, SceLsdbLiveAreaCompatibilityMode compatibility_mode)
 Parse one LiveArea frame XML document and return its frame object.
 
int sceLsdbGetLiveAreaFrames (void *unused, SceLsdbLiveAreaFrameListRef *frames, const SceLsdbString *title_id, SceUInt8 target_type)
 Read and parse the stored LiveArea template for one title and target type.
 
int sceLsdbGetLiveAreaTitleIdNotInList (void *unused, const SceLsdbStringArray *title_ids, SceLsdbString *title_id)
 Return one ur0:-backed LiveArea title absent from title_ids.
 
int sceLsdbGetLiveAreaFrameUserData (void *unused, const SceLsdbString *title_id, const SceLsdbString *frame_id, SceLsdbString *user_data, void *activity_db_handle)
 Read tbl_livearea_frame.userdata.
 
void sceLsdb_29B275BA (const SceLsdbString *title_id, const char *contents_path)
 Does nothing on FW 3.60.
 
int sceLsdbRefreshLiveAreaRecords (const SceLsdbString *title_id, SceLsdbString *original_path)
 Refresh LiveArea rows from their stored contents paths.
 
int sceLsdbReplaceLiveAreaContents (void *unused, const SceLsdbString *title_id, const SceLsdbString *contents_path, SceUInt32 *change_flags, const SceRtcTick *last_modified, SceLsdbString *resolved_title_id, ScePID process_id)
 Replace all stored LiveArea contents for one title.
 
int sceLsdbUpdateLiveAreaFrames (void *unused, const SceLsdbString *title_id, const SceLsdbLiveAreaFrameListRef *frames, const SceLsdbString *contents_path, SceUInt8 target_type, SceUInt32 *change_flags, SceLsdbString *resolved_title_id, ScePID process_id)
 Update one or more already parsed LiveArea frame records.
 
SceBool sceLsdbLiveAreaSfEntryExists (void *unused, const SceLsdbString *title_id, SceInt32 type)
 Return whether a system-function-zone entry has the requested type.
 
int sceLsdbGetLiveAreaPccInfo (void *unused, const SceLsdbString *title_id, SceLsdbLiveAreaPccInfo *pcc_info)
 Read pccUpdDate, pccResStatus, and pccSignOff for one title.
 
int sceLsdbUpdateLiveAreaPccInfo (void *unused, const SceLsdbString *title_id, SceBool include_empty_sf_type0_entry, const SceLsdbLiveAreaPccInfo *pcc_info, SceUInt32 update_flags)
 Update PCC information and the empty system-function-zone slot for one title.
 
int sceLsdbSetLiveAreaSfEntry (void *unused, const SceLsdbString *title_id, const SceLsdbLiveAreaSfEntry *entry)
 Add or replace one sfType/sfTarg pair in a title's LiveArea record.
 
int sceLsdbDeleteLiveAreaSfEntry (void *unused, const SceLsdbString *title_id, SceInt32 type)
 Delete the sfType/sfTarg pair whose sfType equals type.
 
int sceLsdbGetLiveAreaModifiedDate (void *unused, const SceLsdbString *title_id, SceRtcTick *last_modified)
 Read and decode tbl_livearea.modified_date for one title.
 
int sceLsdbSetLiveAreaModifiedDate (void *unused, const SceLsdbString *title_id, const SceRtcTick *last_modified)
 Set tbl_livearea.modified_date for one title.
 
int sceLsdbUpdateLiveAreaFromContents (const SceLsdbString *title_id, const char *contents_path)
 Rebuild one title's normal-layer frame rows from template.xml under contents_path.
 
int sceLsdbDeleteLiveArea (const SceLsdbString *title_id)
 Delete the stored LiveArea record for one title.
 
int sceLsdbGetLiveAreaRevision (const SceLsdbString *title_id, const char *frame_id, SceUInt64 *revision, SceLsdbString *original_path)
 Read a stored LiveArea revision.
 
int sceLsdbIconLayoutClose (void)
 Decrement the icon-layout open count and release the INI context at zero.
 
int sceLsdbIconLayoutOpen (void)
 Open or create ux0:iconlayout.ini and increment the nested open count.
 
int sceLsdbIconLayoutDeleteFile (void)
 Delete ux0:iconlayout.ini.
 
SceBool sceLsdbIconLayoutFileExists (void)
 Return whether ux0:iconlayout.ini exists.
 
SceBool sceLsdbIconLayoutSetWritesDisabled (SceBool disabled)
 Enable or disable icon-layout writes.
 
SceBool sceLsdbIconLayoutGetEntry (const char *title_id, SceLsdbIconLayoutEntry *entry)
 Read one icon-layout entry by title ID.
 
int sceLsdbIconLayoutSetEntry (const char *title_id, const SceLsdbIconLayoutEntry *entry)
 Write one icon-layout entry by title ID.
 
int sceLsdbIconLayoutDeleteEntry (const char *title_id)
 Delete one icon-layout entry.
 
int sceLsdbIconLayoutUpdateParentByPageNo (SceInt32 page_no, const SceInt32 *parent_page_no, const SceInt32 *parent_position, const char *parent_title_id)
 Update selected parent fields of an icon-layout entry selected by page.
 
int sceLsdbIconLayoutShiftPages (SceBool increment, SceInt32 page_no)
 Increment or decrement each stored page number at or above page_no.
 
SceBool sceLsdbIconLayoutPositionExists (SceInt32 page_no, SceInt32 position)
 Return whether any successfully parsed entry exactly matches page_no and position.
 
int sceLsdbIconLayoutGetSpecialPageCount (void)
 Broken FW 3.60 special-page counter.
 

Variables

SceUInt32 type_tag
 Set to 0x102 on FW 3.60.
 
SceLsdbString database_name
 
SceLsdbString table_name
 
SceLsdbString column_name
 
SceInt64 row_id
 
SceBool writable
 
SceLsdbDbBlobCallback callback
 
void * user_data
 
void * vtable
 Internal FW 3.60 Shell theme-information virtual-function table; SceLsdb leaves it untouched.
 
SceLsdbString theme_id
 
SceInt32 type
 Must be 100 when passed to sceLsdbReplaceTheme on FW 3.60.
 
SceLsdbString package_image_file_path
 
SceLsdbString home_preview_file_path
 
SceLsdbString start_preview_file_path
 
SceLsdbUtf16String title
 
SceLsdbUtf16String provider
 
SceUInt32 content_version
 
SceUInt32 padding
 
SceRtcTick last_modified_time
 
SceSize size
 
SceUInt32 key
 FNV-1a hash of the AppInfo key.
 
SceLsdbValueArray values
 Values to compare against.
 
SceUInt32 reserved
 Ignored on FW 3.60.
 
SceInt32 operation
 One of SceLsdbFilterOperator.
 
SceUInt64 mask
 Mask used by SCE_LSDB_FILTER_OPERATOR_BITMASK_EQUAL.
 
const struct SceLsdbAppInfoFilter * next