Debian Codegraph @

src/vendor/azure-uamqp-c/uamqp_generator/amqp_definitions_h.tt

raw
1 <#@ template language="C#" #>
2 <#@ assembly name="System.Core" #>
3 <#@ import namespace="System.Linq" #>
4 <#@ import namespace="System.Text" #>
5 <#@ import namespace="System.Collections.Generic" #>
6 <#@ import namespace="amqplib_generator" #>
7
8 <# amqp amqp = Program.LoadAMQPTypes(); #>
9
10 // Copyright (c) Microsoft. All rights reserved.
11 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
12
13 // This file is generated. DO NOT EDIT it manually.
14 // The generator that produces it is located at /uamqp_generator/uamqp_generator.sln
15
16 #ifndef AMQP_DEFINITIONS_H
17 #define AMQP_DEFINITIONS_H
18
19 #ifdef __cplusplus
20 #include <cstdint>
21 extern "C" {
22 #else
23 #include <stdint.h>
24 #include <stdbool.h>
25 #endif
26
27 #include "azure_uamqp_c/amqpvalue.h"
28 #include "umock_c/umock_c_prod.h"
29
30 <# foreach (section section in amqp.Items.Where(item => item is section)) #>
31 <# { #>
32 <# List<type> types = new List<type>(); #>
33 <# types.AddRange(section.Items.Where(item => item is type).Cast<type>()); #>
34 <# foreach (type type in types) #>
35 <# { #>
36 <# string type_name = type.name.ToLower().Replace('-', '_'); #>
37 #include "<#=$"azure_uamqp_c/amqp_definitions_{type_name}.h" #>"
38 <# } #>
39 <# } #>
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif /* AMQP_DEFINITIONS_H */