Debian Codegraph @

src/vendor/azure-uamqp-c/inc/azure_uamqp_c/amqp_definitions_error.h

raw
1
2
3 // Copyright (c) Microsoft. All rights reserved.
4 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
6 // This file is generated. DO NOT EDIT it manually.
7 // The generator that produces it is located at /uamqp_generator/uamqp_generator.sln
8
9 #ifndef AMQP_DEFINITIONS_ERROR_H
10 #define AMQP_DEFINITIONS_ERROR_H
11
12
13 #ifdef __cplusplus
14 #include <cstdint>
15 extern "C" {
16 #else
17 #include <stdint.h>
18 #include <stdbool.h>
19 #endif
20
21 #include "azure_uamqp_c/amqpvalue.h"
22 #include "umock_c/umock_c_prod.h"
23
24 typedef struct ERROR_INSTANCE_TAG* ERROR_HANDLE;
25
26 MOCKABLE_FUNCTION(, ERROR_HANDLE, error_create , const char*, condition_value);
27 MOCKABLE_FUNCTION(, ERROR_HANDLE, error_clone, ERROR_HANDLE, value);
28 MOCKABLE_FUNCTION(, void, error_destroy, ERROR_HANDLE, error);
29 MOCKABLE_FUNCTION(, bool, is_error_type_by_descriptor, AMQP_VALUE, descriptor);
30 MOCKABLE_FUNCTION(, int, amqpvalue_get_error, AMQP_VALUE, value, ERROR_HANDLE*, ERROR_handle);
31 MOCKABLE_FUNCTION(, AMQP_VALUE, amqpvalue_create_error, ERROR_HANDLE, error);
32
33 MOCKABLE_FUNCTION(, int, error_get_condition, ERROR_HANDLE, error, const char**, condition_value);
34 MOCKABLE_FUNCTION(, int, error_set_condition, ERROR_HANDLE, error, const char*, condition_value);
35 MOCKABLE_FUNCTION(, int, error_get_description, ERROR_HANDLE, error, const char**, description_value);
36 MOCKABLE_FUNCTION(, int, error_set_description, ERROR_HANDLE, error, const char*, description_value);
37 MOCKABLE_FUNCTION(, int, error_get_info, ERROR_HANDLE, error, fields*, info_value);
38 MOCKABLE_FUNCTION(, int, error_set_info, ERROR_HANDLE, error, fields, info_value);
39
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif /* AMQP_DEFINITIONS_ERROR_H */