From 70dcf7938f8d0cf9583b5f3e83c0612b28b348dc Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Mon, 22 Jun 2026 01:38:01 +0000 Subject: [PATCH] sdk: Add status codes Signed-off-by: Chloe M. --- sdk/head/stapi/status.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sdk/head/stapi/status.h diff --git a/sdk/head/stapi/status.h b/sdk/head/stapi/status.h new file mode 100644 index 0000000..eed8ced --- /dev/null +++ b/sdk/head/stapi/status.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2026, Chloe M. + * Provided under the BSD-3 clause. + * + * Description: Status code definitions + * Author: Chloe M. + */ + +#ifndef _STAPI_STATUS_H_ +#define _STAPI_STATUS_H_ 1 + +#include + +/* + * All routines returning a status code must have their + * return type as this. + */ +typedef ULONG ST_STATUS; + +/* Valid status codes */ +#define STATUS_SUCCESS 0 /* Success! :3 */ +#define STATUS_FAILURE 1 /* Failure :( */ +#define STATUS_NOT_FOUND 2 /* Resource not found */ +#define STATUS_NO_MEMORY 3 /* Out of memory */ +#define STATUS_INVALID_PARAM 4 /* Invalid parameter */ +#define STATUS_IO_ERROR 5 /* I/O error */ +#define STATUS_NO_DEV 6 /* No such device */ +#define STATUS_NAME_TOO_LONG 7 /* Name is too long */ +#define STATUS_NOT_DIRECTORY 8 /* File is not a directory */ +#define STATUS_TIMED_OUT 9 /* Operation timed out */ +#define STATUS_NOT_EXEC 10 /* Not executable */ + +#endif /* !_STAPI_STATUS_H_ */