regify utility 2.1.0-0
 
Loading...
Searching...
No Matches
errors.h
1/*
2 * Copyright regify
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
32#ifndef REGIFY_UTIL_ERRORS_H
33#define REGIFY_UTIL_ERRORS_H
34
35/* Only need to export C interface if used by C++ source code */
36#ifdef __cplusplus
37extern "C" {
38#endif /* __cplusplus */
39
47#define RUE_FORK_FAILED (-1)
51#define RUE_RUN_FAILED (-2)
55#define RUE_TIMEOUT (-3)
56
66#define RUE_OK 0
67
68// file i/o
72#define RUE_FILE_NOT_FOUND 60
76#define RUE_FILE_EXISTS 324
80#define RUE_CANT_OPEN_FILE 69
84#define RUE_CANT_WRITE 70
85
86// parameters
90#define RUE_PARAMETER_NOT_SET 64
94#define RUE_WRONG_PARAMETER_LENGTH 71
98#define RUE_INVALID_PARAMETER 77
99
100// miscellaneous
104#define RUE_OUT_OF_MEMORY 68
108#define RUE_OVERFLOW 96
112#define RUE_FEATURE_NOT_SUPPORTED 97
116#define RUE_USER_ABORT 98
120#define RUE_GENERAL 99
124#define RUE_INVALID_STATE 325
125
131#ifdef __cplusplus
132}
133#endif /* __cplusplus */
134#endif //REGIFY_UTIL_ERRORS_H