SingingCat
0
application
src
baseinfo.c
1
#include "main-header.h"
2
3
extern
void
*BASEADR;
// its the ADRESS of the label !!
4
5
struct
app_header
*get_app_header() {
6
return
(
struct
app_header
*)&BASEADR;
7
}
11
struct
meta_header
*get_other_meta_header(
void
*mem) {
12
return
mem - 1024;
13
}
17
struct
meta_header
*get_meta_header() {
18
int
i;
19
20
for
(i = 0; i < loader_get_app_base_address_count(); i++) {
21
if
(loader_get_app_base_address(i) == get_app_header()) {
22
return
loader_get_app_meta_address(i);
23
}
24
}
25
return
NULL;
26
}
app_header
Definition:
baseinfo.h:3
meta_header
Definition:
baseinfo.h:14
Generated on Tue May 28 2024 19:13:43 for SingingCat by
1.9.4