1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
#![deny(missing_docs)]
use std::ffi::c_void;
use std::os::raw::c_char;
use std::os::raw::c_uchar;
#[allow(dead_code)]
extern "C" {
pub fn tibemsErrorContext_Create(
errorContext: *mut c_void) -> tibems_status;
pub fn tibemsErrorContext_GetLastErrorString(
errorContext: *mut c_void,
str: *mut c_char) -> tibems_status;
pub fn tibemsSSLParams_Create() -> *mut c_void;
pub fn tibemsSSLParams_Destroy(sslParams: *mut c_void);
pub fn tibemsStatus_GetText(status: tibems_status) -> *const c_char;
pub fn tibemsServerInfo_GetQueueCount(
serverInfo: usize,
count: *mut usize) -> tibems_status;
pub fn tibemsDestinationInfo_Create(
destInfo: *mut usize,
destName: *const c_char,
destType: usize) -> tibems_status;
pub fn tibemsDestinationInfo_Destroy(
destInfo: usize) -> tibems_status;
pub fn tibemsDestinationInfo_GetPendingMessageCount(
destInfo: usize,
count: *mut i64 ) -> tibems_status;
pub fn tibemsDestinationInfo_GetConsumerCount(
destInfo: usize,
count: &mut usize) -> tibems_status;
pub fn tibemsDestinationInfo_GetOverflowPolicy(
destInfo: usize,
overflowPolicy: *mut usize) -> tibems_status;
pub fn tibemsDestinationInfo_GetName(
destInfo: usize,
name: *const c_char,
name_len: usize) -> tibems_status;
pub fn tibemsCollection_GetFirst(
collection: usize,
collection_ptr: *mut usize) -> tibems_status;
pub fn tibemsCollection_GetNext(
collection: usize,
collection_ptr: *mut usize) -> tibems_status;
pub fn tibemsCollection_Destroy(
collection: usize) -> tibems_status;
pub fn tibemsTopicInfo_GetSubscriptionCount(
topicInfo: usize,
count: *mut i64) -> tibems_status;
pub fn tibemsTopicInfo_GetDurableSubscriptionCount(
topicInfo: usize,
count: *mut i64) -> tibems_status;
pub fn tibemsConnectionFactory_Create() -> *mut tibemsConnectionFactory;
pub fn tibemsConnectionFactory_Destroy(factory: *mut tibemsConnectionFactory) -> tibems_status;
pub fn tibemsConnectionFactory_SetServerURL(
factory: *mut tibemsConnectionFactory,
url: *const c_char) -> tibems_status;
pub fn tibemsConnectionFactory_SetUserName(
factory: *mut tibemsConnectionFactory,
username: *const c_char) -> tibems_status;
pub fn tibemsConnectionFactory_SetUserPassword(
factory: *mut tibemsConnectionFactory,
password: *const c_char) -> tibems_status;
pub fn tibemsConnectionFactory_CreateConnection(
factory: *mut tibemsConnectionFactory,
connection: *mut usize,
username: *const c_char,
password: *const c_char) -> tibems_status;
pub fn tibemsConnection_Start(
connection: usize) -> tibems_status;
pub fn tibemsConnection_CreateSession(
connection: usize,
session: *mut usize,
transacted: tibems_bool,
acknowledgeMode: tibemsAcknowledgeMode) -> tibems_status;
pub fn tibemsDestination_Create(
destination: *mut usize,
destType: tibemsDestinationType,
name: *const c_char) -> tibems_status;
pub fn tibemsConnection_GetActiveURL(
connection: usize,
serverURL: *const *const c_char) -> tibems_status;
pub fn tibemsDestination_Destroy(
destination: usize) -> tibems_status;
pub fn tibemsDestination_GetType(
destination: usize,
destination_type: *mut tibemsDestinationType) -> tibems_status;
pub fn tibemsDestination_GetName(
destination: usize,
name: *const c_char,
name_len: usize) -> tibems_status;
pub fn tibemsDestination_Copy(
destination: usize,
copy: *mut usize) -> tibems_status;
}
#[allow(dead_code)]
extern "C" {
pub fn tibemsSession_Close(session: usize) -> tibems_status;
pub fn tibemsSession_Commit(
session: usize) -> tibems_status;
pub fn tibemsSession_CreateConsumer(
session: usize,
consumer: *mut usize,
destination: usize,
messageSelector: *const c_char,
noLocal: tibems_bool) -> tibems_status;
pub fn tibemsSession_CreateMessage(
session: usize,
textMsg: *mut usize) -> tibems_status;
pub fn tibemsSession_CreateProducer(
session: usize,
producer: *mut usize,
destination: usize ) -> tibems_status;
pub fn tibemsSession_CreateSharedConsumer(
session: usize,
consumer: *mut usize,
topic: usize,
sharedSubscriptionName: *const c_char,
messageSelector: *const c_char) -> tibems_status;
pub fn tibemsSession_CreateSharedDurableConsumer(
session: usize,
consumer: *mut usize,
topic: usize,
durableName: *const c_char,
messageSelector: *const c_char) -> tibems_status;
pub fn tibemsSession_CreateTemporaryQueue(
session: usize,
tmpQueue: *mut usize) -> tibems_status;
pub fn tibemsSession_CreateTemporaryTopic(
session: usize,
tmpTopic: *mut usize) -> tibems_status;
pub fn tibemsSession_DeleteTemporaryQueue(
session: usize,
tmpQueue: usize) -> tibems_status;
pub fn tibemsSession_DeleteTemporaryTopic(
session: usize,
tmpTopic: usize) -> tibems_status;
pub fn tibemsSession_CreateTextMessage(
session: usize,
textMsg: *mut tibemsMsg) -> tibems_status;
}
#[allow(dead_code)]
extern "C" {
pub fn tibemsMsgProducer_Send(
msgProducer: usize,
message: usize) -> tibems_status;
pub fn tibemsMsgProducer_SendEx(
msgProducer: usize,
message: usize,
deliveryMode: tibemsDeliveryMode,
priority: i32,
timeToLive: i64) -> tibems_status;
pub fn tibemsMsgProducer_SendToDestination(
msgProducer: usize,
destination: usize,
message: usize) -> tibems_status;
pub fn tibemsMsgProducer_SendToDestinationEx(
msgProducer: usize,
destination: usize,
message: usize,
deliveryMode: tibemsDeliveryMode,
priority: i32,
timeToLive: i64) -> tibems_status;
pub fn tibemsMsgProducer_Close(
msgProducer: usize) -> tibems_status;
pub fn tibemsMsgProducer_SetTimeToLive(msgProducer: usize, timeToLive: i64) -> tibems_status;
pub fn tibemsQueue_Create(
queue: *mut usize,
queueName: *const c_char) -> tibems_status;
pub fn tibemsLookupContext_Create(
context: *mut tibemsLookupContext,
brokerURL: *const c_char,
username: *const c_char,
password: *const c_char) -> tibems_status;
pub fn tibemsLookupContext_LookupDestination(
context: tibemsLookupContext,
name: *const c_char,
destination: *mut usize) -> tibems_status;
}
#[allow(dead_code)]
extern "C" {
pub fn tibemsMsgConsumer_Receive(
msgConsumer: usize,
message: *mut usize) -> tibems_status;
pub fn tibemsMsgConsumer_ReceiveTimeout(
msgConsumer: usize,
message: *mut usize,
timeout: i64) -> tibems_status;
pub fn tibemsMsgConsumer_Close(msgConsumer: usize) -> tibems_status;
}
#[allow(dead_code)]
extern "C" {
pub fn tibemsBytesMsg_Create(
message: *mut usize) -> tibems_status;
pub fn tibemsBytesMsg_GetBodyLength(
message: usize,
return_length: *mut i32) -> tibems_status;
pub fn tibemsBytesMsg_GetBytes(
message: usize,
bytes: *const *const c_uchar,
byteSize: *mut u32) -> tibems_status;
pub fn tibemsBytesMsg_SetBytes(
message: usize,
bytes: *const c_void,
byteSize: u32) -> tibems_status;
pub fn tibemsMapMsg_Create(
message: *mut usize) -> tibems_status;
pub fn tibemsMapMsg_GetMapNames(
message: usize,
enumeration: *mut usize) -> tibems_status;
pub fn tibemsMapMsg_GetBoolean(
message: usize,
name: *const c_char,
value: *mut tibems_bool) -> tibems_status;
pub fn tibemsMapMsg_GetByte(
message: usize,
name: *const c_char,
value: *mut c_void) -> tibems_status;
pub fn tibemsMapMsg_GetBytes(
message: usize,
name: *const c_char,
bytes: *const *const c_char,
bytesSize: *mut u32) -> tibems_status;
pub fn tibemsMapMsg_GetChar(
message: usize,
name: *const c_char,
value: *mut c_void) -> tibems_status;
pub fn tibemsMapMsg_GetDouble(
message: usize,
name: *const c_char,
value: *mut f64) -> tibems_status;
pub fn tibemsMapMsg_GetField(
message: usize,
name: *const c_char,
value: *mut tibemsMsgField) -> tibems_status;
pub fn tibemsMapMsg_GetFloat(
message: usize,
name: *const c_char,
value: *mut f32) -> tibems_status;
pub fn tibemsMapMsg_GetInt(
message: usize,
name: *const c_char,
value: *mut i32) -> tibems_status;
pub fn tibemsMapMsg_GetLong(
message: usize,
name: *const c_char,
value: *mut i64) -> tibems_status;
pub fn tibemsMapMsg_GetMapMsg(
message: usize,
name: *const c_char,
value: *mut usize) -> tibems_status;
pub fn tibemsMapMsg_GetShort(
message: usize,
name: *const c_char,
value: *mut i16) -> tibems_status;
pub fn tibemsMapMsg_GetString(
message: usize,
name: *const c_char,
value: *mut *mut c_char) -> tibems_status;
pub fn tibemsMapMsg_ItemExists(
message: usize,
name: *const c_char,
exists: *mut tibems_bool) -> tibems_status;
pub fn tibemsMapMsg_SetBytes(
message: usize,
name: *const c_char,
bytes: *mut c_void,
bytesSize: u64) -> tibems_status;
pub fn tibemsMapMsg_SetReferencedBytes(
message: usize,
name: *const c_char,
bytes: *mut c_void,
bytesSize: u64) -> tibems_status;
pub fn tibemsMapMsg_SetBoolean(
message: usize,
name: *const c_char,
value: tibems_bool) -> tibems_status;
pub fn tibemsMapMsg_SetByte(
message: usize,
name: *const c_char,
value: *const c_void) -> tibems_status;
pub fn tibemsMapMsg_SetChar(
message: usize,
name: *const c_char,
value: *const c_void) -> tibems_status;
pub fn tibemsMapMsg_SetDouble(
message: usize,
name: *const c_char,
value: f64) -> tibems_status;
pub fn tibemsMapMsg_SetFloat(
message: usize,
name: *const c_char,
value: f32) -> tibems_status;
pub fn tibemsMapMsg_SetInt(
message: usize,
name: *const c_char,
value: i32) -> tibems_status;
pub fn tibemsMapMsg_SetLong(
message: usize,
name: *const c_char,
value: i64) -> tibems_status;
pub fn tibemsMapMsg_SetShort(
message: usize,
name: *const c_char,
value: i16) -> tibems_status;
pub fn tibemsMapMsg_SetString(
message: usize,
name: *const c_char,
value: *const c_char) -> tibems_status;
pub fn tibemsMsg_Acknowledge(
message: usize) -> tibems_status;
pub fn tibemsMsg_Create(
message: *mut usize) -> tibems_status;
pub fn tibemsMsg_CreateFromBytes(
message: usize,
bytes: *mut c_void,
) -> tibems_status;
pub fn tibemsMsg_Destroy(
message: usize) -> tibems_status;
pub fn tibemsMsg_GetBodyType(
message: usize,
bodyType: *mut tibemsMsgType) -> tibems_status;
pub fn tibemsMsg_GetBooleanProperty(
message: usize,
name: *const c_char,
value: *mut tibems_bool) -> tibems_status;
pub fn tibemsMsg_GetByteProperty(
message: usize,
name: *const c_char,
value: *mut c_char) -> tibems_status;
pub fn tibemsMsg_GetCorrelationID(
message: usize,
value: *const *const c_char) -> tibems_status;
pub fn tibemsMsg_GetDestination(
message: usize,
value: *mut usize) -> tibems_status;
pub fn tibemsMsg_GetMessageID(
message: usize,
value: *const *const c_char ) -> tibems_status;
pub fn tibemsMsg_GetPropertyNames(
message: usize,
enumeration: *mut usize) -> tibems_status;
pub fn tibemsMsg_GetReplyTo(
message: usize,
value: *mut usize) -> tibems_status;
pub fn tibemsMsg_GetStringProperty(
message: usize,
name: *const c_char,
value: *const *const c_char) -> tibems_status;
pub fn tibemsMsg_GetTimestamp(
message: usize,
value: *mut i64) -> tibems_status;
pub fn tibemsMsg_GetType(
message: usize,
value: *const *const c_char) -> tibems_status;
pub fn tibemsMsg_PropertyExists(
message: usize,
name: *const c_char,
result: *mut tibems_bool) -> tibems_status;
pub fn tibemsMsg_Recover(
message: usize) -> tibems_status;
pub fn tibemsMsg_SetBooleanProperty(
message: usize,
name: *const c_char,
value: tibems_bool) -> tibems_status;
pub fn tibemsMsg_SetByteProperty(
message: usize,
name: *const c_char,
value: c_char) -> tibems_status;
pub fn tibemsMsg_SetCorrelationID(
message: usize,
value: *const c_char) -> tibems_status;
pub fn tibemsMsg_SetDestination(
message: usize,
value: usize) -> tibems_status;
pub fn tibemsMsg_SetDoubleProperty(
message: usize,
name: *const c_char,
value: f64) -> tibems_status;
pub fn tibemsMsg_SetExpiration(
message: usize,
value: i64) -> tibems_status;
pub fn tibemsMsg_SetFloatProperty(
message: usize,
name: *const c_char,
value: f32) -> tibems_status;
pub fn tibemsMsg_SetIntProperty(
message: usize,
name: *const c_char,
value: i32) -> tibems_status;
pub fn tibemsMsg_SetLongProperty(
message: usize,
name: *const c_char,
value: i64) -> tibems_status;
pub fn tibemsMsg_SetReplyTo(
message: usize,
value: usize) -> tibems_status;
pub fn tibemsMsg_SetShortProperty(
message: usize,
name: *const c_char,
value: i16) -> tibems_status;
pub fn tibemsMsg_SetStringProperty(
message: usize,
name: *const c_char,
value: *const c_char) -> tibems_status;
pub fn tibemsMsg_SetType(
message: usize,
value: *const c_char) -> tibems_status;
pub fn tibemsMsgEnum_Destroy(
enumeration: usize) -> tibems_status;
pub fn tibemsMsgEnum_GetNextName(
enumeration: usize,
name: *const *const c_char) -> tibems_status;
pub fn tibemsObjectMsg_Create(
message: *mut usize) -> tibems_status;
pub fn tibemsObjectMsg_GetObjectBytes(
message: usize,
bytes: *const *const c_uchar,
byteSize: *mut u32) -> tibems_status;
pub fn tibemsObjectMsg_SetObjectBytes(
message: usize,
bytes: *const c_void,
byteSize: u32) -> tibems_status;
pub fn tibemsTextMsg_Create(
message: *mut usize) -> tibems_status;
pub fn tibemsTextMsg_GetText(
message: usize,
text: *const *const c_char) -> tibems_status;
pub fn tibemsTextMsg_SetText(
message: usize,
text: *const c_char) -> tibems_status;
}
#[allow(dead_code)]
#[repr(C)]
pub struct tibemsErrorContext{
pub _val: [u8; 0]
}
#[allow(dead_code)]
#[repr(C)]
pub struct tibemsConnectionFactory{
pub _val: [u8; 0]
}
#[allow(dead_code)]
#[repr(C)]
pub struct tibemsMsg{
pub _val: usize
}
#[allow(dead_code)]
#[repr(C)]
#[derive(Copy,Clone,Debug)]
pub struct tibemsLookupContext{
pub _val: [u8; 0]
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibemsMsgType{
TIBEMS_MESSAGE_UNKNOWN = 0,
TIBEMS_MESSAGE = 1,
TIBEMS_BYTES_MESSAGE = 2,
TIBEMS_MAP_MESSAGE = 3,
TIBEMS_OBJECT_MESSAGE = 4,
TIBEMS_STREAM_MESSAGE = 5,
TIBEMS_TEXT_MESSAGE = 6,
TIBEMS_MESSAGE_UNDEFINED = 256
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibemsDestinationType{
TIBEMS_UNKNOWN = 0,
TIBEMS_QUEUE = 1,
TIBEMS_TOPIC = 2,
TIBEMS_DEST_UNDEFINED = 256
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibems_bool{
TIBEMS_FALSE = 0,
TIBEMS_TRUE = 1
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibemsDeliveryMode{
TIBEMS_NON_PERSISTENT = 1,
TIBEMS_PERSISTENT = 2,
TIBEMS_RELIABLE = 22,
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibems_permType{
TIBEMS_DEST_GET_STATIC = 1,
TIBEMS_DEST_GET_DYNAMIC = 2,
TIBEMS_DEST_GET_NOTEMP = 3,
TIBEMS_DEST_GET_ALL = 4,
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
#[repr(C)]
pub enum tibemsAcknowledgeMode{
TIBEMS_SESSION_TRANSACTED = 0,
TIBEMS_AUTO_ACKNOWLEDGE = 1,
TIBEMS_CLIENT_ACKNOWLEDGE = 2,
TIBEMS_DUPS_OK_ACKNOWLEDGE = 3,
TIBEMS_NO_ACKNOWLEDGE = 22,
TIBEMS_EXPLICIT_CLIENT_ACKNOWLEDGE = 23,
TIBEMS_EXPLICIT_CLIENT_DUPS_OK_ACKNOWLEDGE = 24
}
#[allow(dead_code)]
#[allow(non_camel_case_types)]
#[derive(Debug, PartialEq)]
#[repr(C)]
pub enum tibems_status{
TIBEMS_OK = 0,
TIBEMS_ILLEGAL_STATE = 1,
TIBEMS_INVALID_CLIENT_ID = 2,
TIBEMS_INVALID_DESTINATION = 3,
TIBEMS_INVALID_SELECTOR = 4,
TIBEMS_EXCEPTION = 5,
TIBEMS_SECURITY_EXCEPTION = 6,
TIBEMS_MSG_EOF = 7,
TIBEMS_MSG_NOT_READABLE = 9,
TIBEMS_MSG_NOT_WRITEABLE = 10,
TIBEMS_SERVER_NOT_CONNECTED = 11,
TIBEMS_VERSION_MISMATCH = 12,
TIBEMS_SUBJECT_COLLISION = 13,
TIBEMS_INVALID_PROTOCOL = 15,
TIBEMS_INVALID_HOSTNAME = 17,
TIBEMS_INVALID_PORT = 18,
TIBEMS_NO_MEMORY = 19,
TIBEMS_INVALID_ARG = 20,
TIBEMS_SERVER_LIMIT = 21,
TIBEMS_MSG_DUPLICATE = 22,
TIBEMS_SERVER_DISCONNECTED = 23,
TIBEMS_SERVER_RECONNECTING = 24,
TIBEMS_NOT_PERMITTED = 27,
TIBEMS_SERVER_RECONNECTED = 28,
TIBEMS_INVALID_NAME = 30,
TIBEMS_INVALID_TYPE = 31,
TIBEMS_INVALID_SIZE = 32,
TIBEMS_INVALID_COUNT = 33,
TIBEMS_NOT_FOUND = 35,
TIBEMS_ID_IN_USE = 36,
TIBEMS_ID_CONFLICT = 37,
TIBEMS_CONVERSION_FAILED = 38,
TIBEMS_INVALID_MSG = 42,
TIBEMS_INVALID_FIELD = 43,
TIBEMS_INVALID_INSTANCE = 44,
TIBEMS_CORRUPT_MSG = 45,
TIBEMS_PRODUCER_FAILED = 47,
TIBEMS_TIMEOUT = 50,
TIBEMS_INTR = 51,
TIBEMS_DESTINATION_LIMIT_EXCEEDED = 52,
TIBEMS_MEM_LIMIT_EXCEEDED = 53,
TIBEMS_USER_INTR = 54,
TIBEMS_INVALID_QUEUE_GROUP = 63,
TIBEMS_INVALID_TIME_INTERVAL = 64,
TIBEMS_INVALID_IO_SOURCE = 65,
TIBEMS_INVALID_IO_CONDITION = 66,
TIBEMS_SOCKET_LIMIT = 67,
TIBEMS_OS_ERROR = 68,
TIBEMS_WOULD_BLOCK = 69,
TIBEMS_INSUFFICIENT_BUFFER = 70,
TIBEMS_EOF = 71,
TIBEMS_INVALID_FILE = 72,
TIBEMS_FILE_NOT_FOUND = 73,
TIBEMS_IO_FAILED = 74,
TIBEMS_NOT_FILE_OWNER = 80,
TIBEMS_ALREADY_EXISTS = 91,
TIBEMS_INVALID_CONNECTION = 100,
TIBEMS_INVALID_SESSION = 101,
TIBEMS_INVALID_CONSUMER = 102,
TIBEMS_INVALID_PRODUCER = 103,
TIBEMS_INVALID_USER = 104,
TIBEMS_INVALID_GROUP = 105,
TIBEMS_TRANSACTION_FAILED = 106,
TIBEMS_TRANSACTION_ROLLBACK = 107,
TIBEMS_TRANSACTION_RETRY = 108,
TIBEMS_INVALID_XARESOURCE = 109,
TIBEMS_FT_SERVER_LACKS_TRANSACTION = 110,
TIBEMS_LDAP_ERROR = 120,
TIBEMS_INVALID_PROXY_USER = 121,
TIBEMS_INVALID_CERT = 150,
TIBEMS_INVALID_CERT_NOT_YET = 151,
TIBEMS_INVALID_CERT_EXPIRED = 152,
TIBEMS_INVALID_CERT_DATA = 153,
TIBEMS_ALGORITHM_ERROR = 154,
TIBEMS_SSL_ERROR = 155,
TIBEMS_INVALID_PRIVATE_KEY = 156,
TIBEMS_INVALID_ENCODING = 157,
TIBEMS_NOT_ENOUGH_RANDOM = 158,
TIBEMS_INVALID_CRL_DATA = 159,
TIBEMS_CRL_OFF = 160,
TIBEMS_EMPTY_CRL = 161,
TIBEMS_NOT_INITIALIZED = 200,
TIBEMS_INIT_FAILURE = 201,
TIBEMS_ARG_CONFLICT = 202,
TIBEMS_SERVICE_NOT_FOUND = 210,
TIBEMS_INVALID_CALLBACK = 211,
TIBEMS_INVALID_QUEUE = 212,
TIBEMS_INVALID_EVENT = 213,
TIBEMS_INVALID_SUBJECT = 214,
TIBEMS_INVALID_DISPATCHER = 215,
TIBEMS_JNI_EXCEPTION = 230,
TIBEMS_JNI_ERR = 231,
TIBEMS_JNI_EDETACHED = 232,
TIBEMS_JNI_EVERSION = 233,
TIBEMS_JNI_EEXIST = 235,
TIBEMS_JNI_EINVAL = 236,
TIBEMS_NO_MEMORY_FOR_OBJECT = 237,
TIBEMS_UFO_CONNECTION_FAILURE = 240,
TIBEMS_NOT_IMPLEMENTED = 255
}
#[allow(dead_code)]
#[repr(C)]
#[derive(Copy,Clone,Debug)]
pub struct tibemsMsgField{
r#type: i8,
size: i32,
count: i32,
data: *const c_void
}