-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibSceCompanionHttpd.c
154 lines (134 loc) · 7.47 KB
/
libSceCompanionHttpd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
This file was generated by genstub.py, do not edit manually!
*/
int sprx_dlsym(unsigned int handle, const char *nid, void *addr);
int sprx_dlopen(const char* libname, unsigned short *handle);
int sprx_dlclose(unsigned int handle);
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdAddHeader;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdAddHeader\n"
".type sceCompanionHttpdAddHeader @function\n"
"sceCompanionHttpdAddHeader:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdAddHeader]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdGet2ndScreenStatus;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdGet2ndScreenStatus\n"
".type sceCompanionHttpdGet2ndScreenStatus @function\n"
"sceCompanionHttpdGet2ndScreenStatus:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdGet2ndScreenStatus]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdGetEvent;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdGetEvent\n"
".type sceCompanionHttpdGetEvent @function\n"
"sceCompanionHttpdGetEvent:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdGetEvent]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdGetUserId;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdGetUserId\n"
".type sceCompanionHttpdGetUserId @function\n"
"sceCompanionHttpdGetUserId:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdGetUserId]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdInitialize;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdInitialize\n"
".type sceCompanionHttpdInitialize @function\n"
"sceCompanionHttpdInitialize:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdInitialize2;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdInitialize2\n"
".type sceCompanionHttpdInitialize2 @function\n"
"sceCompanionHttpdInitialize2:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdInitialize2]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdOptParamInitialize;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdOptParamInitialize\n"
".type sceCompanionHttpdOptParamInitialize @function\n"
"sceCompanionHttpdOptParamInitialize:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdOptParamInitialize]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdRegisterRequestBodyReceptionCallback;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdRegisterRequestBodyReceptionCallback\n"
".type sceCompanionHttpdRegisterRequestBodyReceptionCallback @function\n"
"sceCompanionHttpdRegisterRequestBodyReceptionCallback:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdRegisterRequestBodyReceptionCallback]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdRegisterRequestCallback;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdRegisterRequestCallback\n"
".type sceCompanionHttpdRegisterRequestCallback @function\n"
"sceCompanionHttpdRegisterRequestCallback:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdRegisterRequestCallback]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdRegisterRequestCallback2;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdRegisterRequestCallback2\n"
".type sceCompanionHttpdRegisterRequestCallback2 @function\n"
"sceCompanionHttpdRegisterRequestCallback2:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdRegisterRequestCallback2]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdSetBody;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdSetBody\n"
".type sceCompanionHttpdSetBody @function\n"
"sceCompanionHttpdSetBody:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdSetBody]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdSetStatus;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdSetStatus\n"
".type sceCompanionHttpdSetStatus @function\n"
"sceCompanionHttpdSetStatus:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdSetStatus]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdStart;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdStart\n"
".type sceCompanionHttpdStart @function\n"
"sceCompanionHttpdStart:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdStart]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdStop;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdStop\n"
".type sceCompanionHttpdStop @function\n"
"sceCompanionHttpdStop:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdStop]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdTerminate;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdTerminate\n"
".type sceCompanionHttpdTerminate @function\n"
"sceCompanionHttpdTerminate:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdTerminate]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdUnregisterRequestBodyReceptionCallback;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdUnregisterRequestBodyReceptionCallback\n"
".type sceCompanionHttpdUnregisterRequestBodyReceptionCallback @function\n"
"sceCompanionHttpdUnregisterRequestBodyReceptionCallback:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdUnregisterRequestBodyReceptionCallback]\n");
static __attribute__ ((used)) void* __ptr_sceCompanionHttpdUnregisterRequestCallback;
asm(".intel_syntax noprefix\n"
".global sceCompanionHttpdUnregisterRequestCallback\n"
".type sceCompanionHttpdUnregisterRequestCallback @function\n"
"sceCompanionHttpdUnregisterRequestCallback:\n"
"jmp qword ptr [rip + __ptr_sceCompanionHttpdUnregisterRequestCallback]\n");
static unsigned short __handle = 0;
static void __attribute__((constructor(104)))
__constructor(void) {
if(sprx_dlopen("libSceCompanionHttpd", &__handle)) return;
if(sprx_dlsym(__handle, "8pWltDG7h6A", &__ptr_sceCompanionHttpdAddHeader)) return;
if(sprx_dlsym(__handle, "B-QBMeFdNgY", &__ptr_sceCompanionHttpdGet2ndScreenStatus)) return;
if(sprx_dlsym(__handle, "Vku4big+IYM", &__ptr_sceCompanionHttpdGetEvent)) return;
if(sprx_dlsym(__handle, "0SySxcuVNG0", &__ptr_sceCompanionHttpdGetUserId)) return;
if(sprx_dlsym(__handle, "ykNpWs3ktLY", &__ptr_sceCompanionHttpdInitialize)) return;
if(sprx_dlsym(__handle, "OA6FbORefbo", &__ptr_sceCompanionHttpdInitialize2)) return;
if(sprx_dlsym(__handle, "r-2-a0c7Kfc", &__ptr_sceCompanionHttpdOptParamInitialize)) return;
if(sprx_dlsym(__handle, "fHNmij7kAUM", &__ptr_sceCompanionHttpdRegisterRequestBodyReceptionCallback)) return;
if(sprx_dlsym(__handle, "OaWw+IVEdbI", &__ptr_sceCompanionHttpdRegisterRequestCallback)) return;
if(sprx_dlsym(__handle, "-0c9TCTwnGs", &__ptr_sceCompanionHttpdRegisterRequestCallback2)) return;
if(sprx_dlsym(__handle, "h3OvVxzX4qM", &__ptr_sceCompanionHttpdSetBody)) return;
if(sprx_dlsym(__handle, "w7oz0AWHpT4", &__ptr_sceCompanionHttpdSetStatus)) return;
if(sprx_dlsym(__handle, "k7F0FcDM-Xc", &__ptr_sceCompanionHttpdStart)) return;
if(sprx_dlsym(__handle, "0SCgzfVQHpo", &__ptr_sceCompanionHttpdStop)) return;
if(sprx_dlsym(__handle, "+-du9tWgE9s", &__ptr_sceCompanionHttpdTerminate)) return;
if(sprx_dlsym(__handle, "ZSHiUfYK+QI", &__ptr_sceCompanionHttpdUnregisterRequestBodyReceptionCallback)) return;
if(sprx_dlsym(__handle, "xweOi2QT-BE", &__ptr_sceCompanionHttpdUnregisterRequestCallback)) return;
}
static void __attribute__((destructor(104)))
__destructor(void) {
sprx_dlclose(__handle);
}