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
+18 -5
View File
@@ -120,11 +120,6 @@ public:
u8 field_0x93;
};
extern "C" {
void stop__8JAISoundFUl(JAISound*, u32 fadeout);
void stop__8JAISoundFv(JAISound*);
}
class JAISoundHandle {
public:
JAISoundHandle(); // noninline in JAUClusterSound.cpp
@@ -145,4 +140,22 @@ private:
JAISound* mSound;
};
extern "C" {
void __ct__14JAISoundHandleFv(void);
void releaseSound__14JAISoundHandleFv(void);
void JAISoundHandle_NS_dtor(void);
void stop__8JAISoundFUl(JAISound*, u32 fadeout);
void stop__8JAISoundFv(JAISound*);
void JAISoundID_NS___as(void);
void JAISoundID_X1_(void);
void JAISound_NS_acceptsNewAudible(void);
void JAISound_NS_getID(void);
void JAISound_NS_newAudible(void);
void JAISound_NS_releaseHandle(void);
}
#endif