YAMI4Industry
common.h
Go to the documentation of this file.
1 /* Copyright Inspirel Sp. z o.o. 2013-2015.
2  * This file is part of YAMI4.
3  *
4  * YAMI4 is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * YAMI4 is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with YAMI4. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef YAMI4INDUSTRY_COMMON_H
19 #define YAMI4INDUSTRY_COMMON_H
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif /* __cplusplus */
25 
29 {
30  yami_ok, /* < Operation completed successfully. */
31  yami_no_such_name, /* < The given name was not found. */
32  yami_not_enough_space, /* < There is not enough space in the buffer. */
33  yami_unexpected_value, /* < The given value was not recognized. */
34  yami_bad_protocol, /* < The connection protocol is incorrect. */
35  yami_io_error, /* < Unable to perform the I/O operation. */
36  yami_timed_out, /* < The requested operation timed out. */
37  yami_channel_closed, /* < The operation was not possible due to EOF. */
38  yami_bad_state /* < The given object is in the wrong state. */
39 };
40 
44 {
45  yami_boolean, /*< bool */
46  yami_integer, /*< int */
47  yami_long_long, /*< long long */
48 #ifdef YAMI4_WITH_DOUBLE_FLOAT
49  yami_double_float, /*< double */
50 #endif /* YAMI4_WITH_DOUBLE_FLOAT */
51  yami_string, /*< string */
52  yami_binary, /*< Binary block */
53  yami_boolean_array, /*< Array of bool */
54  yami_integer_array, /*< Array of int */
55  yami_long_long_array, /*< Array of long long */
56 #ifdef YAMI4_WITH_DOUBLE_FLOAT
57  yami_double_float_array, /*< Array of double */
58 #endif /* YAMI4_WITH_DOUBLE_FLOAT */
59  yami_string_array, /*< Array of strings */
60  yami_binary_array, /*< Array of binary blocks */
61  yami_nested_parameters, /*< Nested parameters object */
62  yami_nested_parameters_array /*< Array of nested parameters object */
63 };
64 
65 #ifdef __cplusplus
66 }
67 #endif /* __cplusplus */
68 
69 #endif /* YAMI4INDUSTRY_COMMON_H */
yami_parameter_type
Definition: common.h:43
Definition: common.h:55
Definition: common.h:32
yami_result
Definition: common.h:28
Definition: common.h:53
Definition: common.h:33
Definition: common.h:61
Definition: common.h:35
Definition: common.h:46
Definition: common.h:54
Definition: common.h:37
Definition: common.h:47
Definition: common.h:31
Definition: common.h:62
Definition: common.h:52
Definition: common.h:34
Definition: common.h:38
Definition: common.h:36
Definition: common.h:30
Definition: common.h:60
Definition: common.h:45
Definition: common.h:59
Definition: common.h:51