PS2SDK
PS2 Homebrew Libraries
smod.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright (c) 2003 Marcus R. Brown <mrbrown@0xd6.org>
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __SMOD_H__
17 #define __SMOD_H__
18 
19 #include <tamtypes.h>
20 
24 typedef struct _smod_mod_info {
25  struct _smod_mod_info *next;
27  char *name;
28  u16 version;
30  u16 newflags;
31  u16 id;
32  u16 unused;
34  u32 entry;
35  u32 gp;
36  u32 text_start;
37  u32 text_size;
38  u32 data_size;
39  u32 bss_size;
40  u32 unused1;
41  u32 unused2;
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
49 extern int smod_get_next_mod(smod_mod_info_t *cur_mod, smod_mod_info_t *next_mod);
50 
52 extern int smod_get_mod_by_name(const char *name, smod_mod_info_t *info);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* __SMOD_H__ */
smod_get_mod_by_name
int smod_get_mod_by_name(const char *name, smod_mod_info_t *info)
Definition: smod.c:54
s_info
Definition: xprintf.c:78
_smod_mod_info::name
char * name
Definition: smod.h:27
_smod_mod_info
Definition: smod.h:24
tamtypes.h
_smod_mod_info::entry
u32 entry
Definition: smod.h:34
smod_mod_info_t
struct _smod_mod_info smod_mod_info_t
_smod_mod_info::newflags
u16 newflags
Definition: smod.h:30
smod_get_next_mod
int smod_get_next_mod(smod_mod_info_t *cur_mod, smod_mod_info_t *next_mod)
Definition: smod.c:30