2022-09-10 20:32:26 +00:00
|
|
|
#ifndef __OSRESET_H__
|
|
|
|
#define __OSRESET_H__
|
|
|
|
|
|
|
|
#include <types.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
typedef BOOL (*OSResetFunction)(BOOL final);
|
2022-09-10 20:32:26 +00:00
|
|
|
typedef struct OSResetFunctionInfo OSResetFunctionInfo;
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
struct OSResetFunctionInfo {
|
|
|
|
// public
|
|
|
|
OSResetFunction func;
|
|
|
|
u32 priority;
|
2022-09-10 20:32:26 +00:00
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
// private
|
|
|
|
OSResetFunctionInfo* next;
|
|
|
|
OSResetFunctionInfo* prev;
|
2022-09-10 20:32:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|