102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_result.h
Go to the documentation of this file.
1
3
4#ifndef DTTR_RESULT_H
5#define DTTR_RESULT_H
6
7#include <stdbool.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
35
41
45const char *DTTR_StatusName(DTTR_Status status);
46
50bool DTTR_StatusOK(DTTR_Status status);
51
56
60bool DTTR_ResultOK(DTTR_Result result);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif // DTTR_RESULT_H
const char * DTTR_StatusName(DTTR_Status status)
Definition core.c:23
bool DTTR_ResultOK(DTTR_Result result)
Definition core.c:78
DTTR_Status
Definition dttr_result.h:13
@ DTTR_ERR_HOOK_CHAIN_UNSUPPORTED
Definition dttr_result.h:24
@ DTTR_ERR_RUNTIME_UNAVAILABLE
Definition dttr_result.h:21
@ DTTR_ERR_WRITE_FAILED
Definition dttr_result.h:29
@ DTTR_ERR_NOT_INSTALLED
Definition dttr_result.h:19
@ DTTR_ERR_INVALID_ARGUMENT
Definition dttr_result.h:15
@ DTTR_ERR_UNSUPPORTED_LAYOUT
Definition dttr_result.h:31
@ DTTR_ERR_READ_FAILED
Definition dttr_result.h:28
@ DTTR_ERR_UNRESOLVED
Definition dttr_result.h:26
@ DTTR_ERR_NOT_FOUND
Definition dttr_result.h:16
@ DTTR_OK
Definition dttr_result.h:14
@ DTTR_ERR_UNSUPPORTED_CONTRACT
Definition dttr_result.h:32
@ DTTR_ERR_PROVENANCE_UNSAFE
Definition dttr_result.h:33
@ DTTR_ERR_OUT_OF_MEMORY
Definition dttr_result.h:23
@ DTTR_ERR_ABI_MISMATCH
Definition dttr_result.h:22
@ DTTR_ERR_NOT_CALLABLE
Definition dttr_result.h:27
@ DTTR_ERR_MEMORY_PROTECTION
Definition dttr_result.h:20
@ DTTR_ERR_MISSING_SYMBOL
Definition dttr_result.h:25
@ DTTR_ERR_POLICY_MISMATCH
Definition dttr_result.h:30
@ DTTR_ERR_ALREADY_INSTALLED
Definition dttr_result.h:18
@ DTTR_ERR_UNSUPPORTED
Definition dttr_result.h:17
bool DTTR_StatusOK(DTTR_Status status)
Definition core.c:70
bool DTTR_StatusFailed(DTTR_Status status)
Definition core.c:74
const char * message
Optional static diagnostic text. May be NULL when status is enough.
Definition dttr_result.h:39
DTTR_Status status
Definition dttr_result.h:37