refactor: Move SceKernelThreadEntry to psptypes.h

Avoids type definition conflicts.
This commit is contained in:
GrayJack
2025-09-09 05:47:45 -03:00
parent c4df37300e
commit bd7e8509b3
3 changed files with 34 additions and 37 deletions

View File

@@ -427,6 +427,9 @@ typedef struct ScePspDateTime {
unsigned int microsecond;
} ScePspDateTime;
/* Thread entry function type. */
typedef int (*SceKernelThreadEntry)(SceSize args, void *argp);
#ifdef __cplusplus
}
#endif

View File

@@ -26,10 +26,6 @@ extern "C" {
/** @addtogroup LoadCore Interface to the LoadCoreForKernel library. */
/**@{*/
#ifndef __THREADMAN_H__
typedef int (*SceKernelThreadEntry)(SceSize args, void *argp);
#endif
/** Reboot preparation functions */
typedef s32 (*SceKernelRebootBeforeForKernel)(void *arg1, s32 arg2, s32 arg3, s32 arg4);

View File

@@ -68,8 +68,6 @@ enum PspThreadAttributes
/* Threads. */
typedef int (*SceKernelThreadEntry)(SceSize args, void *argp);
/** Additional options used when creating threads. */
typedef struct SceKernelThreadOptParam {
/** Size of the ::SceKernelThreadOptParam structure. */