RetroArch
common.h
Go to the documentation of this file.
1 #pragma once
2 
3 // C stdlib includes
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 #include <limits.h>
8 #include <unistd.h>
9 #include <dirent.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
12 
13 // 3DS includes
14 #include <3ds.h>
15 
16 
17 #define ENTRY_ARGBUFSIZE 0x400
18 #define NUM_SERVICESTHATMATTER 5
19 
20 typedef enum
21 {
28 
31 
34 
39 
42 
49 
51 } StrId;
52 
53 
54 typedef struct
55 {
56  char* dst;
58 } argData_s;
59 
60 typedef struct
61 {
62  bool scanned;
63  u32 sectionSizes[3];
64  bool servicesThatMatter[NUM_SERVICESTHATMATTER];
66 
67 typedef struct
68 {
76  u32 processHookTidLow, processHookTidHigh;
78  bool capabilities[0x10]; // {socuAccess, csndAccess, qtmAccess, nfcAccess, httpcAccess, reserved...}
80 
81 typedef struct
82 {
85 
86 typedef struct
87 {
90 } memmap_t;
91 
92 #define memmapSize(m) (sizeof(memmap_header_t) + sizeof(memmap_entry_t)*(m)->header.num)
93 
94 
95 #include "launch.h"
Definition: common.h:22
Definition: common.h:60
Definition: common.h:41
#define ENTRY_ARGBUFSIZE
Definition: common.h:17
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
Definition: common.h:26
Definition: common.h:81
Definition: common.h:33
bool scanned
Definition: common.h:62
Definition: common.h:54
u32 data_address
Definition: common.h:71
u32 src
Definition: common.h:83
GLsizeiptr size
Definition: glext.h:6559
Definition: common.h:35
Definition: common.h:36
u32 mediatype
Definition: common.h:77
u32 processLinearOffset
Definition: common.h:73
u32 text_end
Definition: common.h:70
Definition: common.h:30
u32 num
Definition: common.h:69
Definition: common.h:67
u32 processHookAddress
Definition: common.h:74
u32 processHookTidLow
Definition: common.h:76
Definition: common.h:38
#define NUM_SERVICESTHATMATTER
Definition: common.h:18
Definition: common.h:48
Definition: common.h:32
Definition: common.h:23
Definition: common.h:47
Definition: common.h:43
Definition: common.h:40
char * dst
Definition: common.h:56
Definition: common.h:46
memmap_header_t header
Definition: common.h:88
Definition: common.h:44
Definition: common.h:50
u32 processAppCodeAddress
Definition: common.h:75
u32 data_size
Definition: common.h:72
Definition: common.h:27
GLenum GLenum dst
Definition: glext.h:6980
Definition: common.h:86
Definition: common.h:37
Definition: common.h:45
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
Definition: common.h:29
Definition: common.h:24
Definition: common.h:25
StrId
Definition: common.h:20