Z2AudioLib: Migrate declarations out of functions.h to respective files (#96)

Removes the strong dependency on a single header file and moves
declarations to their respective header file.

This allows for making dependencies explicit in cpp files and other
headers, and also makes it much easier to track where everything related
to a particular component is.

This change also creates a few header files that previously didn't
exist, making it much nicer for people implementing things, as they
won't need to create the header file, it'll just be there ready to go.

Ideally functions.h wouldn't even be a thing, as this header adds a lot
of preprocessing overhead due to its size, and will continue to grow
significantly larger over the lifespan of the project, which can also
impact the performance of editors that do dependency lookups and
context-aware syntax highlighting.
This commit is contained in:
LC
2021-01-25 12:57:46 -05:00
committed by GitHub
parent 9165dfe8cf
commit ec9b03241d
90 changed files with 1074 additions and 714 deletions
+22 -6
View File
@@ -1,11 +1,14 @@
#ifndef Z2AUDIOMGR_H_
#define Z2AUDIOMGR_H_
#include "JSystem/JKernel/JKRAramArchive/JKRAramArchive.h"
#include "JSystem/JKernel/JKRSolidHeap/JKRSolidHeap.h"
#include "Z2AudioLib/Z2SceneMgr/Z2SceneMgr.h"
struct Z2AudioMgr {
Z2AudioMgr();
~Z2AudioMgr();
void gframeProcess(void);
Z2AudioMgr* setOutputMode(unsigned long outputMode);
u32 resetProcess(u32 param_1, bool param_2);
@@ -18,12 +21,25 @@ struct Z2AudioMgr {
u8 unk_2[0xdad];
};
extern "C" {
void setOutputMode__10Z2AudioMgrFUl(void);
void setOutputMode__9JASDriverFUl(void);
}
extern Z2AudioMgr lbl_803DBF4C;
extern Z2AudioMgr* lbl_80451368;
#endif
extern "C" {
void func_802CDCEC(void);
void func_8036679C(void);
void func_80362ABC(void);
void func_802CD7F8(void);
void func_802CDB1C(void);
void func_802CDB68(void);
void func_802CDC08(void);
void resetProcess__10Z2AudioMgrFUlb(void);
void setOutputMode__10Z2AudioMgrFUl(void);
void Z2AudioMgr_NS_gframeProcess(void);
void Z2AudioMgr_NS_init(void);
void Z2AudioMgr_NS_resetRecover(void);
void Z2AudioMgr_NS_zeldaGFrameWork(void);
}
#endif // Z2AUDIOMGR_H_