proton/types.h

Go to the documentation of this file.
00001 #ifndef PROTON_TYPES_H
00002 #define PROTON_TYPES_H 1
00003 
00004 /*
00005  *
00006  * Licensed to the Apache Software Foundation (ASF) under one
00007  * or more contributor license agreements.  See the NOTICE file
00008  * distributed with this work for additional information
00009  * regarding copyright ownership.  The ASF licenses this file
00010  * to you under the Apache License, Version 2.0 (the
00011  * "License"); you may not use this file except in compliance
00012  * with the License.  You may obtain a copy of the License at
00013  *
00014  *   http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing,
00017  * software distributed under the License is distributed on an
00018  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00019  * KIND, either express or implied.  See the License for the
00020  * specific language governing permissions and limitations
00021  * under the License.
00022  *
00023  */
00024 
00025 #include <proton/import_export.h>
00026 #include <stddef.h>
00027 #include <proton/type_compat.h>
00028 
00133 #ifdef __cplusplus
00134 extern "C" {
00135 #endif
00136 
00142 typedef uint32_t  pn_sequence_t;
00143 
00149 typedef uint32_t pn_millis_t;
00150 
00156 #define PN_MILLIS_MAX (~0U)
00157 
00163 typedef uint32_t pn_seconds_t;
00164 
00170 typedef int64_t pn_timestamp_t;
00171 
00177 typedef uint32_t pn_char_t;
00178 
00184 typedef uint32_t pn_decimal32_t;
00185 
00191 typedef uint64_t pn_decimal64_t;
00192 
00198 typedef struct {
00199   char bytes[16];
00200 } pn_decimal128_t;
00201 
00207 typedef struct {
00208   char bytes[16];
00209 } pn_uuid_t;
00210 
00216 typedef struct pn_bytes_t {
00217   size_t size;
00218   const char *start;
00219 } pn_bytes_t;
00220 
00226 PN_EXTERN pn_bytes_t pn_bytes(size_t size, const char *start);
00227 
00228 PN_EXTERN extern const pn_bytes_t pn_bytes_null;
00229 
00235 typedef struct pn_rwbytes_t {
00236   size_t size;
00237   char *start;
00238 } pn_rwbytes_t;
00239 
00245 PN_EXTERN pn_rwbytes_t pn_rwbytes(size_t size, char *start);
00246 
00247 PN_EXTERN extern const pn_rwbytes_t pn_rwbytes_null;
00248 
00271 typedef int pn_state_t;
00272 
00285 typedef struct pn_connection_t pn_connection_t;
00286 
00296 typedef struct pn_session_t pn_session_t;
00297 
00315 typedef struct pn_link_t pn_link_t;
00316 
00405 typedef struct pn_delivery_t pn_delivery_t;
00406 
00417 typedef struct pn_collector_t pn_collector_t;
00418 
00424 typedef struct pn_listener_t pn_listener_t;
00425 
00435 typedef struct pn_transport_t pn_transport_t;
00436 
00442 typedef struct pn_proactor_t pn_proactor_t;
00443 
00449 typedef struct pn_raw_connection_t pn_raw_connection_t;
00450 
00462 typedef struct pn_event_batch_t pn_event_batch_t;
00463 
00471 typedef struct pn_handler_t pn_handler_t;
00476 #ifdef __cplusplus
00477 }
00478 #endif
00479 
00480 #endif /* types.h */

Generated on 2 Oct 2020 for Qpid Proton C by  doxygen 1.6.1