CoreDX DDS C Reference Manual
dds_builtin_basic.h
Go to the documentation of this file.
1 /********************************************
2  * DDS type specific header file. *
3  * Autogenerated by CoreDX DDL compiler. *
4  * Do no edit - edits may be overwritten. *
5  ********************************************/
6 
7 #ifndef _DDS_BUILTIN_BASIC_H
8 #define _DDS_BUILTIN_BASIC_H
9 #include <dds/dds_types.h>
10 #include <dds/dds_export.h>
11 #define DDS_SAFE_UNMARSH 1
12 #include <dds/dds_marsh.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 # define DDS_BUILTIN_BASIC_DDL_VERSION_MAJOR 4
19 # define DDS_BUILTIN_BASIC_DDL_VERSION_MINOR 0
20 # define DDS_BUILTIN_BASIC_DDL_VERSION_PATCH 10
21 # define DDS_BUILTIN_BASIC_DDL_VERSION_MAJOR_STR "4"
22 # define DDS_BUILTIN_BASIC_DDL_VERSION_MINOR_STR "0"
23 # define DDS_BUILTIN_BASIC_DDL_VERSION_PATCH_STR "10"
24 
27  /* Namespace DDS begins here */
28 
30  typedef struct DDS_BuiltinTopicKey_t {
32  int value [3];
34 
35  COREDX_C_API struct DDS_BuiltinTopicKey_t *DDS_BuiltinTopicKey_t_alloc ( void );
36 # define DDS_BuiltinTopicKey_t__alloc DDS_BuiltinTopicKey_t_alloc /* discouraged */
37  COREDX_C_API void DDS_BuiltinTopicKey_t_free ( struct DDS_BuiltinTopicKey_t * inst );
38  COREDX_C_API void DDS_BuiltinTopicKey_t_init ( struct DDS_BuiltinTopicKey_t * instance );
39  COREDX_C_API void DDS_BuiltinTopicKey_t_clear( struct DDS_BuiltinTopicKey_t * instance );
40  COREDX_C_API void DDS_BuiltinTopicKey_t_copy ( struct DDS_BuiltinTopicKey_t * copy_to, const struct DDS_BuiltinTopicKey_t * copy_from );
41  COREDX_C_API int DDS_BuiltinTopicKey_t_get_marshal_size ( const struct DDS_BuiltinTopicKey_t * inst, int offset, int just_keys );
42  COREDX_C_API int DDS_BuiltinTopicKey_t_marshal_cdr ( const struct DDS_BuiltinTopicKey_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
43  COREDX_C_API int DDS_BuiltinTopicKey_t_marshal_key_hash ( const struct DDS_BuiltinTopicKey_t * inst, unsigned char * buf, int offset, int buf_len );
44  COREDX_C_API int DDS_BuiltinTopicKey_t_unmarshal_cdr ( struct DDS_BuiltinTopicKey_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
45  COREDX_C_API int DDS_BuiltinTopicKey_t_unmarshal_key_hash ( struct DDS_BuiltinTopicKey_t * inst, unsigned char * buf, int offset, int buf_len );
46 
47  COREDX_C_API unsigned char DDS_BuiltinTopicKey_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
48 
49 
50 /* DDS Data Type SEQUENCE: sequence<DDS_BuiltinTopicKey_t *> */
51 #ifndef _DDS_sequence_c_DDS_BuiltinTopicKey_tPtr_defined
52 #define _DDS_sequence_c_DDS_BuiltinTopicKey_tPtr_defined
53  DECLARE_SEQ( DDS_BuiltinTopicKey_t * , DDS_BuiltinTopicKey_tPtrSeq );
54 #endif /* DDS Data Type SEQUENCE: sequence<DDS_BuiltinTopicKey_tPtrSeq *> */
55 
56 
58  typedef unsigned char DDS_GuidPrefix_t[12];
59  typedef unsigned char DDS_GuidPrefix_t_slice;
60  typedef struct DDS_EntityId_t {
62  unsigned char entityKey [3];
64  unsigned char entityKind;
65  } DDS_EntityId_t;
66 
67  COREDX_C_API struct DDS_EntityId_t *DDS_EntityId_t_alloc ( void );
68 # define DDS_EntityId_t__alloc DDS_EntityId_t_alloc /* discouraged */
69  COREDX_C_API void DDS_EntityId_t_free ( struct DDS_EntityId_t * inst );
70  COREDX_C_API void DDS_EntityId_t_init ( struct DDS_EntityId_t * instance );
71  COREDX_C_API void DDS_EntityId_t_clear( struct DDS_EntityId_t * instance );
72  COREDX_C_API void DDS_EntityId_t_copy ( struct DDS_EntityId_t * copy_to, const struct DDS_EntityId_t * copy_from );
73  COREDX_C_API int DDS_EntityId_t_get_marshal_size ( const struct DDS_EntityId_t * inst, int offset, int just_keys );
74  COREDX_C_API int DDS_EntityId_t_marshal_cdr ( const struct DDS_EntityId_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
75  COREDX_C_API int DDS_EntityId_t_marshal_key_hash ( const struct DDS_EntityId_t * inst, unsigned char * buf, int offset, int buf_len );
76  COREDX_C_API int DDS_EntityId_t_unmarshal_cdr ( struct DDS_EntityId_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
77  COREDX_C_API int DDS_EntityId_t_unmarshal_key_hash ( struct DDS_EntityId_t * inst, unsigned char * buf, int offset, int buf_len );
78 
79  COREDX_C_API unsigned char DDS_EntityId_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
80 
81 
82 /* DDS Data Type SEQUENCE: sequence<DDS_EntityId_t *> */
83 #ifndef _DDS_sequence_c_DDS_EntityId_tPtr_defined
84 #define _DDS_sequence_c_DDS_EntityId_tPtr_defined
85  DECLARE_SEQ( DDS_EntityId_t * , DDS_EntityId_tPtrSeq );
86 #endif /* DDS Data Type SEQUENCE: sequence<DDS_EntityId_tPtrSeq *> */
87 
88 
91  typedef struct DDS_GUID_t {
93  unsigned char value [16];
94  } DDS_GUID_t;
95 
96  COREDX_C_API struct DDS_GUID_t *DDS_GUID_t_alloc ( void );
97 # define DDS_GUID_t__alloc DDS_GUID_t_alloc /* discouraged */
98  COREDX_C_API void DDS_GUID_t_free ( struct DDS_GUID_t * inst );
99  COREDX_C_API void DDS_GUID_t_init ( struct DDS_GUID_t * instance );
100  COREDX_C_API void DDS_GUID_t_clear( struct DDS_GUID_t * instance );
101  COREDX_C_API void DDS_GUID_t_copy ( struct DDS_GUID_t * copy_to, const struct DDS_GUID_t * copy_from );
102  COREDX_C_API int DDS_GUID_t_get_marshal_size ( const struct DDS_GUID_t * inst, int offset, int just_keys );
103  COREDX_C_API int DDS_GUID_t_marshal_cdr ( const struct DDS_GUID_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
104  COREDX_C_API int DDS_GUID_t_marshal_key_hash ( const struct DDS_GUID_t * inst, unsigned char * buf, int offset, int buf_len );
105  COREDX_C_API int DDS_GUID_t_unmarshal_cdr ( struct DDS_GUID_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
106  COREDX_C_API int DDS_GUID_t_unmarshal_key_hash ( struct DDS_GUID_t * inst, unsigned char * buf, int offset, int buf_len );
107 
108  COREDX_C_API unsigned char DDS_GUID_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
109 
110 
111 /* DDS Data Type SEQUENCE: sequence<DDS_GUID_t *> */
112 #ifndef _DDS_sequence_c_DDS_GUID_tPtr_defined
113 #define _DDS_sequence_c_DDS_GUID_tPtr_defined
114  DECLARE_SEQ( DDS_GUID_t * , DDS_GUID_tPtrSeq );
115 #endif /* DDS Data Type SEQUENCE: sequence<DDS_GUID_tPtrSeq *> */
116 
117 
121  typedef struct DDS_SequenceNumber_t {
123  int high;
125  uint32_t low;
127 
128  COREDX_C_API struct DDS_SequenceNumber_t *DDS_SequenceNumber_t_alloc ( void );
129 # define DDS_SequenceNumber_t__alloc DDS_SequenceNumber_t_alloc /* discouraged */
130  COREDX_C_API void DDS_SequenceNumber_t_free ( struct DDS_SequenceNumber_t * inst );
131  COREDX_C_API void DDS_SequenceNumber_t_init ( struct DDS_SequenceNumber_t * instance );
132  COREDX_C_API void DDS_SequenceNumber_t_clear( struct DDS_SequenceNumber_t * instance );
133  COREDX_C_API void DDS_SequenceNumber_t_copy ( struct DDS_SequenceNumber_t * copy_to, const struct DDS_SequenceNumber_t * copy_from );
134  COREDX_C_API int DDS_SequenceNumber_t_get_marshal_size ( const struct DDS_SequenceNumber_t * inst, int offset, int just_keys );
135  COREDX_C_API int DDS_SequenceNumber_t_marshal_cdr ( const struct DDS_SequenceNumber_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
136  COREDX_C_API int DDS_SequenceNumber_t_marshal_key_hash ( const struct DDS_SequenceNumber_t * inst, unsigned char * buf, int offset, int buf_len );
137  COREDX_C_API int DDS_SequenceNumber_t_unmarshal_cdr ( struct DDS_SequenceNumber_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
138  COREDX_C_API int DDS_SequenceNumber_t_unmarshal_key_hash ( struct DDS_SequenceNumber_t * inst, unsigned char * buf, int offset, int buf_len );
139 
140  COREDX_C_API unsigned char DDS_SequenceNumber_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
141 
142 
143 /* DDS Data Type SEQUENCE: sequence<DDS_SequenceNumber_t *> */
144 #ifndef _DDS_sequence_c_DDS_SequenceNumber_tPtr_defined
145 #define _DDS_sequence_c_DDS_SequenceNumber_tPtr_defined
146  DECLARE_SEQ( DDS_SequenceNumber_t * , DDS_SequenceNumber_tPtrSeq );
147 #endif /* DDS Data Type SEQUENCE: sequence<DDS_SequenceNumber_tPtrSeq *> */
148 
149 
151  typedef struct DDS_SampleIdentity_t {
153  struct DDS_GUID_t guid;
155  struct DDS_SequenceNumber_t seqnum;
157 
158  COREDX_C_API struct DDS_SampleIdentity_t *DDS_SampleIdentity_t_alloc ( void );
159 # define DDS_SampleIdentity_t__alloc DDS_SampleIdentity_t_alloc /* discouraged */
160  COREDX_C_API void DDS_SampleIdentity_t_free ( struct DDS_SampleIdentity_t * inst );
161  COREDX_C_API void DDS_SampleIdentity_t_init ( struct DDS_SampleIdentity_t * instance );
162  COREDX_C_API void DDS_SampleIdentity_t_clear( struct DDS_SampleIdentity_t * instance );
163  COREDX_C_API void DDS_SampleIdentity_t_copy ( struct DDS_SampleIdentity_t * copy_to, const struct DDS_SampleIdentity_t * copy_from );
164  COREDX_C_API int DDS_SampleIdentity_t_get_marshal_size ( const struct DDS_SampleIdentity_t * inst, int offset, int just_keys );
165  COREDX_C_API int DDS_SampleIdentity_t_marshal_cdr ( const struct DDS_SampleIdentity_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
166  COREDX_C_API int DDS_SampleIdentity_t_marshal_key_hash ( const struct DDS_SampleIdentity_t * inst, unsigned char * buf, int offset, int buf_len );
167  COREDX_C_API int DDS_SampleIdentity_t_unmarshal_cdr ( struct DDS_SampleIdentity_t * inst, unsigned char * buf, int offset, int buf_len, unsigned char swap, int just_keys );
168  COREDX_C_API int DDS_SampleIdentity_t_unmarshal_key_hash ( struct DDS_SampleIdentity_t * inst, unsigned char * buf, int offset, int buf_len );
169 
170  COREDX_C_API unsigned char DDS_SampleIdentity_t_get_field_def( const char * fieldname, CoreDX_FieldDef_t * field_def);
171 
172 
173 /* DDS Data Type SEQUENCE: sequence<DDS_SampleIdentity_t *> */
174 #ifndef _DDS_sequence_c_DDS_SampleIdentity_tPtr_defined
175 #define _DDS_sequence_c_DDS_SampleIdentity_tPtr_defined
176  DECLARE_SEQ( DDS_SampleIdentity_t * , DDS_SampleIdentity_tPtrSeq );
177 #endif /* DDS Data Type SEQUENCE: sequence<DDS_SampleIdentity_tPtrSeq *> */
178 
179 
180 
181  /* Namespace DDS ends here */
182 
183 #ifdef __cplusplus
184 }
185 #endif
186 
187 #endif
unsigned char DDS_GuidPrefix_t[12]
Definition: dds_builtin_basic.h:58
Definition: dds_builtin_basic.h:151
Definition: dds_builtin_basic.h:121
Definition: dds_builtin_basic.h:30
Definition: dds_builtin_basic.h:91
int value[3]
Definition: dds_builtin_basic.h:32
DECLARE_SEQ(DDS_DynamicTypeMember, DDS_DynamicTypeMemberSeq)
A DDS_DynamicTypeMemberSeq instance is a sequence of DDS_DynamicTypeMember&#39;s.
uint32_t low
Definition: dds_builtin_basic.h:125
int high
Definition: dds_builtin_basic.h:123

© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.