From 5091a364187c21ee614db2b4a571ce2f5dc49abc Mon Sep 17 00:00:00 2001 From: James Benton Date: Wed, 20 Jun 2018 11:20:15 +0100 Subject: [PATCH] Add OSFunctionType. Placed in messagequeue.h because it is used in the system message queue for distinguishing messages. --- include/coreinit/messagequeue.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/coreinit/messagequeue.h b/include/coreinit/messagequeue.h index 9bab844..8865525 100644 --- a/include/coreinit/messagequeue.h +++ b/include/coreinit/messagequeue.h @@ -22,6 +22,21 @@ typedef enum OSMessageFlags OS_MESSAGE_FLAGS_HIGH_PRIORITY = 1 << 1, } OSMessageFlags; +typedef enum OSFunctionType +{ + OS_FUNCTION_TYPE_HIO_OPEN = 1, + OS_FUNCTION_TYPE_HIO_READ_ASYNC = 2, + OS_FUNCTION_TYPE_HIO_WRITE_ASYNC = 3, + OS_FUNCTION_TYPE_FSA_CMD_ASYNC = 4, + OS_FUNCTION_TYPE_FSA_PR_CMD_ASYNC = 5, + OS_FUNCTION_TYPE_FSA_PR_CMD_ASYNC_NO_ALLOC = 6, + OS_FUNCTION_TYPE_FSA_ATTACH_EVENT = 7, + OS_FUNCTION_TYPE_FS_CMD_ASYNC = 8, + OS_FUNCTION_TYPE_FS_CMD_HANDLER = 9, + OS_FUNCTION_TYPE_FS_ATTACH_EVENT = 10, + OS_FUNCTION_TYPE_FS_STATE_CHANGE_EVENT = 11, +} OSFunctionType; + struct OSMessage { void *message;