Files
ss/include/libms/libms.h
T
2025-11-22 20:49:58 -05:00

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