diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-03-19 06:48:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-20 00:48:49 +1100 |
| commit | 03c8d46ed26a7a67c4f97efa22e5bc50542af493 (patch) | |
| tree | 241f42c063cfc0088a380305f3fab8a1d3295fcb /include/slowly.h | |
| parent | 6ff77ab09258c4f19a5336c66f8b9cdb7a90fcb5 (diff) | |
Slowly Cleanup (#1213)
* Add slowly.h
* Init and destroy
* File header
Diffstat (limited to 'include/slowly.h')
| -rw-r--r-- | include/slowly.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/slowly.h b/include/slowly.h new file mode 100644 index 000000000..b91d652d9 --- /dev/null +++ b/include/slowly.h @@ -0,0 +1,31 @@ +#ifndef SLOWLY_H +#define SLOWLY_H + +#include "ultra64.h" + +#define SLOWLY_STATUS_DONE (1 << 0) +#define SLOWLY_STATUS_STARTED (1 << 1) + +typedef void (*SlowlyCallbackZero)(void); +typedef void (*SlowlyCallbackOne)(void*); +typedef void (*SlowlyCallbackTwo)(void*, void*); + +typedef union { + SlowlyCallbackZero zero; + SlowlyCallbackOne one; + SlowlyCallbackTwo two; +} SlowlyCallback; // size = 0x4 + +typedef struct { + /* 0x000 */ OSThread thread; + /* 0x1B0 */ u8 argCount; + /* 0x1B1 */ u8 status; + /* 0x1B4 */ SlowlyCallback callback; + /* 0x1B8 */ void* arg0; + /* 0x1BC */ void* arg1; +} SlowlyMgr; // size = 0x1C0 + +void Slowly_Init(SlowlyMgr* slowly, void* stack, SlowlyCallbackTwo callback, void* arg0, void* arg1); +void Slowly_Destroy(SlowlyMgr* slowly); + +#endif |
