Mercurial > hg > vamp-plugin-load-checker
comparison checker/checkcode.h @ 45:ad02dff8ebfb
Merge from branch errorcode
author | Chris Cannam |
---|---|
date | Fri, 31 Aug 2018 15:14:57 +0100 |
parents | 49946b02414e |
children | dd193244d97d |
comparison
equal
deleted
inserted
replaced
39:a28b19b136e8 | 45:ad02dff8ebfb |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 /* | |
3 Copyright (c) 2016-2018 Queen Mary, University of London | |
4 | |
5 Permission is hereby granted, free of charge, to any person | |
6 obtaining a copy of this software and associated documentation | |
7 files (the "Software"), to deal in the Software without | |
8 restriction, including without limitation the rights to use, copy, | |
9 modify, merge, publish, distribute, sublicense, and/or sell copies | |
10 of the Software, and to permit persons to whom the Software is | |
11 furnished to do so, subject to the following conditions: | |
12 | |
13 The above copyright notice and this permission notice shall be | |
14 included in all copies or substantial portions of the Software. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | |
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
21 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
23 | |
24 Except as contained in this notice, the names of the Centre for | |
25 Digital Music and Queen Mary, University of London shall not be | |
26 used in advertising or otherwise to promote the sale, use or other | |
27 dealings in this Software without prior written authorization. | |
28 */ | |
29 | |
30 #ifndef CHECK_CODE_H | |
31 #define CHECK_CODE_H | |
32 | |
33 enum class PluginCheckCode { | |
34 | |
35 SUCCESS = 0, | |
36 | |
37 /** Plugin library file is not found | |
38 */ | |
39 FAIL_LIBRARY_NOT_FOUND = 1, | |
40 | |
41 /** Plugin library does appear to be a library, but its | |
42 * architecture differs from that of the checker program, in | |
43 * a way that can be distinguished from other loader | |
44 * failures. On Windows this may arise from system error 193, | |
45 * ERROR_BAD_EXE_FORMAT | |
46 */ | |
47 FAIL_WRONG_ARCHITECTURE = 2, | |
48 | |
49 /** Plugin library depends on some other library that cannot be | |
50 * loaded. On Windows this may arise from system error 126, | |
51 * ERROR_MOD_NOT_FOUND, provided that the library file itself | |
52 * exists | |
53 */ | |
54 FAIL_DEPENDENCY_MISSING = 3, | |
55 | |
56 /** Plugin library cannot be loaded for some other reason | |
57 */ | |
58 FAIL_NOT_LOADABLE = 4, | |
59 | |
60 /** Plugin library can be loaded, but the expected plugin | |
61 * descriptor symbol is missing | |
62 */ | |
63 FAIL_DESCRIPTOR_MISSING = 5, | |
64 | |
65 /** Plugin library can be loaded and descriptor called, but no | |
66 * plugins are found in it | |
67 */ | |
68 FAIL_NO_PLUGINS = 6, | |
69 | |
70 /** Failure but no meaningful error code provided, or failure | |
71 * read from an older helper version that did not support | |
72 * error codes | |
73 */ | |
74 FAIL_OTHER = 7 | |
75 }; | |
76 | |
77 #endif |