mirror of
https://github.com/decompals/wibo.git
synced 2025-07-02 03:13:29 +00:00
* Implement enough process handling logic to make psyq4.0 happy * revert gitignore * data type update * PR review * DEBUG_LOG mistake --------- Co-authored-by: ConorBobbleHat <c.github@firstpartners.net>
20 lines
317 B
C++
20 lines
317 B
C++
#include <stdlib.h>
|
|
|
|
namespace handles {
|
|
enum Type {
|
|
TYPE_UNUSED,
|
|
TYPE_FILE,
|
|
TYPE_MAPPED,
|
|
TYPE_PROCESS
|
|
};
|
|
|
|
struct Data {
|
|
Type type = TYPE_UNUSED;
|
|
void *ptr;
|
|
size_t size;
|
|
};
|
|
|
|
Data dataFromHandle(void *handle, bool pop);
|
|
void *allocDataHandle(Data data);
|
|
}
|