C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
types.h
Go to the documentation of this file.
1 #ifndef PROTON_TYPES_H
2 #define PROTON_TYPES_H 1
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
25 #include <proton/import_export.h>
26 #include <sys/types.h>
27 #include <proton/type_compat.h>
28 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
45 typedef int32_t pn_sequence_t;
46 typedef uint32_t pn_millis_t;
47 typedef uint32_t pn_seconds_t;
48 typedef int64_t pn_timestamp_t;
49 typedef uint32_t pn_char_t;
50 typedef uint32_t pn_decimal32_t;
51 typedef uint64_t pn_decimal64_t;
52 typedef struct {
53  char bytes[16];
55 typedef struct {
56  char bytes[16];
57 } pn_uuid_t;
58 
59 typedef struct {
60  size_t size;
61  char *start;
62 } pn_bytes_t;
63 
64 PN_EXTERN pn_bytes_t pn_bytes(size_t size, char *start);
65 PN_EXTERN pn_bytes_t pn_bytes_dup(size_t size, const char *start);
66 
97 typedef int pn_state_t;
98 
112 typedef struct pn_connection_t pn_connection_t;
113 
123 typedef struct pn_session_t pn_session_t;
124 
142 typedef struct pn_link_t pn_link_t;
143 
232 typedef struct pn_delivery_t pn_delivery_t;
233 
244 typedef struct pn_collector_t pn_collector_t;
245 
256 typedef struct pn_transport_t pn_transport_t;
257 
260 #ifdef __cplusplus
261 }
262 #endif
263 
267 #endif /* types.h */