Replace hard-coded exit status bitmask values with named constants.

This commit is contained in:
Andrew Wood
2024-06-08 21:49:46 +01:00
parent addf25ff16
commit 1c61154206
6 changed files with 37 additions and 26 deletions
+11
View File
@@ -23,6 +23,17 @@
extern "C" {
#endif
/*
* Exit status bitmask values.
*/
#define PV_ERROREXIT_REMOTE 1
#define PV_ERROREXIT_ACCESS 2
#define PV_ERROREXIT_OUROBOROS 4
#define PV_ERROREXIT_TRANSITION 8
#define PV_ERROREXIT_TRANSFER 16
#define PV_ERROREXIT_SIGNAL 32
#define PV_ERROREXIT_MEMORY 64
/*
* Opaque structure for PV internal state.
*/