Mercurial > hg > vamp-plugin-load-checker
comparison checker/checkcode.h @ 51:dd193244d97d
Remove newlines from error messages; try to do something sensible with security errors
author | Chris Cannam |
---|---|
date | Fri, 02 Nov 2018 14:39:51 +0000 |
parents | 49946b02414e |
children |
comparison
equal
deleted
inserted
replaced
50:5f91094e5680 | 51:dd193244d97d |
---|---|
51 * ERROR_MOD_NOT_FOUND, provided that the library file itself | 51 * ERROR_MOD_NOT_FOUND, provided that the library file itself |
52 * exists | 52 * exists |
53 */ | 53 */ |
54 FAIL_DEPENDENCY_MISSING = 3, | 54 FAIL_DEPENDENCY_MISSING = 3, |
55 | 55 |
56 /** Plugin library loading was refused for some security-related | |
57 * reason | |
58 */ | |
59 FAIL_FORBIDDEN = 4, | |
60 | |
56 /** Plugin library cannot be loaded for some other reason | 61 /** Plugin library cannot be loaded for some other reason |
57 */ | 62 */ |
58 FAIL_NOT_LOADABLE = 4, | 63 FAIL_NOT_LOADABLE = 5, |
59 | 64 |
60 /** Plugin library can be loaded, but the expected plugin | 65 /** Plugin library can be loaded, but the expected plugin |
61 * descriptor symbol is missing | 66 * descriptor symbol is missing |
62 */ | 67 */ |
63 FAIL_DESCRIPTOR_MISSING = 5, | 68 FAIL_DESCRIPTOR_MISSING = 6, |
64 | 69 |
65 /** Plugin library can be loaded and descriptor called, but no | 70 /** Plugin library can be loaded and descriptor called, but no |
66 * plugins are found in it | 71 * plugins are found in it |
67 */ | 72 */ |
68 FAIL_NO_PLUGINS = 6, | 73 FAIL_NO_PLUGINS = 7, |
69 | 74 |
70 /** Failure but no meaningful error code provided, or failure | 75 /** Failure but no meaningful error code provided, or failure |
71 * read from an older helper version that did not support | 76 * read from an older helper version that did not support |
72 * error codes | 77 * error codes |
73 */ | 78 */ |
74 FAIL_OTHER = 7 | 79 FAIL_OTHER = 999 |
75 }; | 80 }; |
76 | 81 |
77 #endif | 82 #endif |