mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 15:01:38 -04:00
2b0e4985ff
Thanks Troy from gc/wii decomp server Reference: https://github.com/Trippixyz/LibMessageStudio/blob/ceb14124dbf037627a3c40e2bb9c87725baf3cbb/src/libms.c
31 lines
552 B
C
31 lines
552 B
C
#ifndef LIBMS_LIBMS_H
|
|
#define LIBMS_LIBMS_H
|
|
|
|
#include "common.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// made up
|
|
enum LMS_Error {
|
|
LMS_NOT_FOUND = -1,
|
|
LMS_MISSING_LBL1_DATA = -2,
|
|
LMS_MISSING_FLW3_DATA = -4,
|
|
LMS_MISSING_FEN1_DATA = -10,
|
|
};
|
|
|
|
void LMS_SetMemFuncs(void *(*alloc)(size_t size), void (*free)(void *ptr));
|
|
|
|
// internal
|
|
void *LMSi_Malloc(size_t size);
|
|
void LMSi_Free(void *ptr);
|
|
int LMSi_MemCmp(const void *p1, const void *p2, int n);
|
|
void LMSi_MemCopy(void *p1, const void *p2, int n);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|