Qpid Proton C API 0.39.0
 
Loading...
Searching...
No Matches
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 <stddef.h>
27#include <proton/type_compat.h>
28
133#ifdef __cplusplus
134extern "C" {
135#endif
136
142typedef uint32_t pn_sequence_t;
143
149typedef uint32_t pn_millis_t;
150
156#define PN_MILLIS_MAX (~0U)
157
163typedef uint32_t pn_seconds_t;
164
170typedef int64_t pn_timestamp_t;
171
177typedef uint32_t pn_char_t;
178
184typedef uint32_t pn_decimal32_t;
185
191typedef uint64_t pn_decimal64_t;
192
198typedef struct {
199 char bytes[16];
201
207typedef struct {
208 char bytes[16];
209} pn_uuid_t;
210
216typedef struct pn_bytes_t {
217 size_t size;
218 const char *start;
219} pn_bytes_t;
220
226PN_EXTERN pn_bytes_t pn_bytes(size_t size, const char *start);
227
228PN_EXTERN extern const pn_bytes_t pn_bytes_null;
229
235typedef struct pn_rwbytes_t {
236 size_t size;
237 char *start;
239
245PN_EXTERN pn_rwbytes_t pn_rwbytes(size_t size, char *start);
246
247PN_EXTERN extern const pn_rwbytes_t pn_rwbytes_null;
248
271typedef int pn_state_t;
272
286
297
315typedef struct pn_link_t pn_link_t;
316
406
418
425
436
443
450
463
467typedef const void* pn_handle_t;
468
472typedef struct pn_class_t pn_class_t;
473
478
486typedef struct pn_handler_t pn_handler_t;
491#ifdef __cplusplus
492}
493#endif
494
495#endif /* types.h */
uint32_t pn_decimal32_t
A 32-bit decimal floating-point number.
Definition: types.h:184
uint64_t pn_decimal64_t
A 64-bit decimal floating-point number.
Definition: types.h:191
uint32_t pn_char_t
A 32-bit Unicode code point.
Definition: types.h:177
int64_t pn_timestamp_t
A 64-bit timestamp in milliseconds since the Unix epoch.
Definition: types.h:170
A 128-bit decimal floating-point number.
Definition: types.h:198
A 16-byte universally unique identifier.
Definition: types.h:207
uint32_t pn_sequence_t
A sequence number.
Definition: types.h:142
uint32_t pn_millis_t
A span of time in milliseconds.
Definition: types.h:149
pn_rwbytes_t pn_rwbytes(size_t size, char *start)
Create a pn_rwbytes_t.
pn_bytes_t pn_bytes(size_t size, const char *start)
Create a pn_bytes_t.
uint32_t pn_seconds_t
A span of time in seconds.
Definition: types.h:163
A const byte buffer.
Definition: types.h:216
A non-const byte buffer.
Definition: types.h:235
struct pn_connection_t pn_connection_t
An AMQP Connection object.
Definition: types.h:285
int pn_state_t
Holds the state flags for an AMQP endpoint.
Definition: types.h:271
struct pn_delivery_t pn_delivery_t
An AMQP Delivery object.
Definition: types.h:405
struct pn_collector_t pn_collector_t
An event collector.
Definition: types.h:417
struct pn_listener_t pn_listener_t
A listener for incoming connections.
Definition: types.h:424
struct pn_event_batch_t pn_event_batch_t
A batch of events that must be handled in sequence.
Definition: types.h:462
struct pn_proactor_t pn_proactor_t
A harness for multithreaded IO.
Definition: types.h:442
struct pn_raw_connection_t pn_raw_connection_t
A raw network connection used with the proactor.
Definition: types.h:449
struct pn_session_t pn_session_t
An AMQP Session object.
Definition: types.h:296
struct pn_transport_t pn_transport_t
A network channel supporting an AMQP connection.
Definition: types.h:435
const void * pn_handle_t
A type to represent the internal navigational state of a proton object.
Definition: types.h:467
struct pn_record_t pn_record_t
A type representing attached context information.
Definition: types.h:477
struct pn_class_t pn_class_t
A type representing the type of a proton internal object.
Definition: types.h:472