libtransistor
A userland library for the Nintendo Switch
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
libtransistor
ipc
fs
idirectory.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
#include<
libtransistor/types.h
>
13
#include<
libtransistor/ipc.h
>
14
15
#include<assert.h>
16
17
typedef
ipc_object_t
idirectory_t
;
18
19
typedef
struct
idirectoryentry
{
20
char
path[0x300];
21
uint32_t unk1;
22
uint8_t entry_type;
23
// TODO: Padding
24
uint64_t size;
25
}
idirectoryentry_t
;
26
static_assert(
sizeof
(
idirectoryentry_t
) == 0x310,
"Wrong idirectoryentry_t size"
);
27
28
result_t
idirectory_read(idirectory_t obj, uint64_t *out_unk0,
idirectoryentry_t
* out_unk1,
size_t
out_unk1_size);
29
result_t
idirectory_get_entry_count(idirectory_t obj, uint64_t *out_unk0);
30
31
#ifdef __cplusplus
32
}
33
#endif
types.h
Various system types.
result_t
uint32_t result_t
Function result.
Definition:
types.h:51
ipc_object_t
Represents either an object within an IPC domain or a standalone object.
Definition:
ipc.h:32
idirectoryentry
Definition:
idirectory.h:19
ipc.h
Interprocess Communication data structures and functions.
Generated on Thu Oct 3 2019 01:41:37 for libtransistor by
1.8.6