Update libc.h
[ps4-sdk.git] / libPS4 / include / module.h
blob23434f57672a2cdb2ac3c636bb7f2efddd2e3ea6
1 #pragma once
3 #include "types.h"
5 #define RESOLVE(module, name) getFunctionAddressByName(module, #name, &name)
7 struct moduleInfo {
8 size_t size; // 0x0
9 char name[32]; // 0x8
10 char padding1[0xe0]; // 0x28
11 void *codeBase; // 0x108
12 unsigned int codeSize; // 0x110
13 void *dataBase; // 0x118
14 unsigned int dataSize; // 0x120
15 char padding2[0x3c]; // 0x124
18 extern int (*sceSysmoduleLoadModule)(int id);
20 int getFunctionAddressByName(int loadedModuleID, char *name, void *destination);
21 int getLoadedModules(int *destination, int max, int *count);
22 int getModuleInfo(int loadedModuleID, struct moduleInfo *destination);
23 int loadModule(const char *name, int *idDestination);
24 int unloadModule(int id);
26 void initModule(void);