Files
tp/include/dolphin/charPipeline/structures/Tree.h
T
TakaRikka 2453c0e333 copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over

* cleanup some temp work

* finish and cleanup gf

* b_bh done

* d_a_e_mb done
2025-02-10 21:20:42 +02:00

33 lines
648 B
C

#ifndef _CHARPIPELINE_STRUCTURES_TREE_H_
#define _CHARPIPELINE_STRUCTURES_TREE_H_
#include <dolphin/types.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
Ptr Prev;
Ptr Next;
Ptr Parent;
Ptr Children;
} DSBranch, *DSBranchPtr;
typedef struct {
u32 Offset;
Ptr Root;
} DSTree, *DSTreePtr;
void DSExtractBranch(DSTreePtr tree, Ptr obj);
void DSInitTree(DSTreePtr tree, Ptr obj, DSBranchPtr branch);
void DSInsertBranchBelow(DSTreePtr tree, Ptr cursor, Ptr obj);
void DSInsertBranchBeside(DSTreePtr tree, Ptr cursor, Ptr obj);
void DSRemoveBranch(DSTreePtr tree, Ptr obj);
#ifdef __cplusplus
}
#endif
#endif