forked from fluisgirardi/fpopen62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types_generated_1_3.inc
2960 lines (2599 loc) · 65.8 KB
/
types_generated_1_3.inc
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
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Generated from Opc.Ua.Types.bsd with script ./generate_datatypes_fpc.py
* on host seis by user luca at 2021-11-04 04:52:46 *)
(**
* Every type is assigned an index in an array containing the type descriptions.
* These descriptions are used during type handling (copying, deletion,
* binary encoding, ...). *)
const
UA_TYPES_COUNT = 191;
(**
* Boolean
* ^^^^^^^
*)
UA_TYPES_BOOLEAN = 0;
(**
* SByte
* ^^^^^
*)
UA_TYPES_SBYTE = 1;
(**
* Byte
* ^^^^
*)
UA_TYPES_BYTE = 2;
(**
* Int16
* ^^^^^
*)
UA_TYPES_INT16 = 3;
(**
* UInt16
* ^^^^^^
*)
UA_TYPES_UINT16 = 4;
(**
* Int32
* ^^^^^
*)
UA_TYPES_INT32 = 5;
(**
* UInt32
* ^^^^^^
*)
UA_TYPES_UINT32 = 6;
(**
* Int64
* ^^^^^
*)
UA_TYPES_INT64 = 7;
(**
* UInt64
* ^^^^^^
*)
UA_TYPES_UINT64 = 8;
(**
* Float
* ^^^^^
*)
UA_TYPES_FLOAT = 9;
(**
* Double
* ^^^^^^
*)
UA_TYPES_DOUBLE = 10;
(**
* String
* ^^^^^^
*)
UA_TYPES_STRING = 11;
(**
* DateTime
* ^^^^^^^^
*)
UA_TYPES_DATETIME = 12;
(**
* Guid
* ^^^^
*)
UA_TYPES_GUID = 13;
(**
* ByteString
* ^^^^^^^^^^
*)
UA_TYPES_BYTESTRING = 14;
(**
* XmlElement
* ^^^^^^^^^^
*)
UA_TYPES_XMLELEMENT = 15;
(**
* NodeId
* ^^^^^^
*)
UA_TYPES_NODEID = 16;
(**
* ExpandedNodeId
* ^^^^^^^^^^^^^^
*)
UA_TYPES_EXPANDEDNODEID = 17;
(**
* StatusCode
* ^^^^^^^^^^
*)
UA_TYPES_STATUSCODE = 18;
(**
* QualifiedName
* ^^^^^^^^^^^^^
*)
UA_TYPES_QUALIFIEDNAME = 19;
(**
* LocalizedText
* ^^^^^^^^^^^^^
*)
UA_TYPES_LOCALIZEDTEXT = 20;
(**
* ExtensionObject
* ^^^^^^^^^^^^^^^
*)
UA_TYPES_EXTENSIONOBJECT = 21;
(**
* DataValue
* ^^^^^^^^^
*)
UA_TYPES_DATAVALUE = 22;
(**
* Variant
* ^^^^^^^
*)
UA_TYPES_VARIANT = 23;
(**
* DiagnosticInfo
* ^^^^^^^^^^^^^^
*)
UA_TYPES_DIAGNOSTICINFO = 24;
(**
* KeyValuePair
* ^^^^^^^^^^^^
*)
type
UA_KeyValuePair = record
key : UA_QualifiedName ;
value : UA_Variant;
end;
PUA_KeyValuePair = ^UA_KeyValuePair;
const
UA_TYPES_KEYVALUEPAIR = 25;
(**
* NodeClass
* ^^^^^^^^^
* A mask specifying the class of the node. *)
type
UA_NodeClass = (
UA_NODECLASS_UNSPECIFIED = 0,
UA_NODECLASS_OBJECT = 1,
UA_NODECLASS_VARIABLE = 2,
UA_NODECLASS_METHOD = 4,
UA_NODECLASS_OBJECTTYPE = 8,
UA_NODECLASS_VARIABLETYPE = 16,
UA_NODECLASS_REFERENCETYPE = 32,
UA_NODECLASS_DATATYPE = 64,
UA_NODECLASS_VIEW = 128,
__UA_NODECLASS_FORCE32BIT = $7fffffff
);
PUA_NodeClass = ^UA_NodeClass;
{$IF sizeof(UA_NodeClass) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_NODECLASS = 26;
(**
* StructureType
* ^^^^^^^^^^^^^
*)
type
UA_StructureType = (
UA_STRUCTURETYPE_STRUCTURE = 0,
UA_STRUCTURETYPE_STRUCTUREWITHOPTIONALFIELDS = 1,
UA_STRUCTURETYPE_UNION = 2,
__UA_STRUCTURETYPE_FORCE32BIT = $7fffffff
);
PUA_StructureType = ^UA_StructureType;
{$IF sizeof(UA_StructureType) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_STRUCTURETYPE = 27;
(**
* StructureField
* ^^^^^^^^^^^^^^
*)
type
UA_StructureField = record
name: UA_String;
description: UA_LocalizedText;
dataType: UA_NodeId;
valueRank: UA_Int32;
arrayDimensionsSize: size_t;
arrayDimensions: PUA_UInt32;
maxStringLength: UA_UInt32;
isOptional: UA_Boolean;
end;
PUA_StructureField = ^UA_StructureField;
const
UA_TYPES_STRUCTUREFIELD = 28;
(**
* StructureDefinition
* ^^^^^^^^^^^^^^^^^^^
*)
type
UA_StructureDefinition = record
defaultEncodingId: UA_NodeId;
baseDataType: UA_NodeId;
structureType: UA_StructureType;
fieldsSize: size_t;
fields: PUA_StructureField;
end;
PUA_StructureDefinition = ^UA_StructureDefinition;
const
UA_TYPES_STRUCTUREDEFINITION = 29;
(**
* Argument
* ^^^^^^^^
* An argument for a method. *)
type
UA_Argument = record
name: UA_String;
dataType: UA_NodeId;
valueRank: UA_Int32;
arrayDimensionsSize: size_t;
arrayDimensions: PUA_UInt32;
description: UA_LocalizedText;
end;
PUA_Argument = ^UA_Argument;
const
UA_TYPES_ARGUMENT = 30;
(**
* EnumValueType
* ^^^^^^^^^^^^^
* A mapping between a value of an enumerated type and a name and description. *)
type
UA_EnumValueType = record
value: UA_Int64;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
end;
PUA_EnumValueType = ^UA_EnumValueType;
const
UA_TYPES_ENUMVALUETYPE = 31;
(**
* EnumField
* ^^^^^^^^^
*)
type
UA_EnumField = record
value: UA_Int64;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
name: UA_String;
end;
PUA_EnumField = ^UA_EnumField;
const
UA_TYPES_ENUMFIELD = 32;
(**
* Duration
* ^^^^^^^^
* A period of time measured in milliseconds. *)
type
UA_Duration = UA_Double;
const
UA_TYPES_DURATION = 33;
(**
* UtcTime
* ^^^^^^^
* A date/time value specified in Universal Coordinated Time (UTC). *)
type
UA_UtcTime = UA_DateTime;
const
UA_TYPES_UTCTIME = 34;
(**
* LocaleId
* ^^^^^^^^
* An identifier for a user locale. *)
type
UA_LocaleId = UA_String;
const
UA_TYPES_LOCALEID = 35;
(**
* TimeZoneDataType
* ^^^^^^^^^^^^^^^^
*)
type
UA_TimeZoneDataType = record
offset : UA_Int16;
daylightSavingInOffset : UA_Boolean;
end;
PUA_TimeZoneDataType = ^UA_TimeZoneDataType;
const
UA_TYPES_TIMEZONEDATATYPE = 36;
(**
* ApplicationType
* ^^^^^^^^^^^^^^^
* The types of applications. *)
type
UA_ApplicationType = (
UA_APPLICATIONTYPE_SERVER = 0,
UA_APPLICATIONTYPE_CLIENT = 1,
UA_APPLICATIONTYPE_CLIENTANDSERVER = 2,
UA_APPLICATIONTYPE_DISCOVERYSERVER = 3,
__UA_APPLICATIONTYPE_FORCE32BIT = $7fffffff
);
PUA_ApplicationType = ^UA_ApplicationType;
{$IF sizeof(UA_ApplicationType) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_APPLICATIONTYPE = 37;
(**
* ApplicationDescription
* ^^^^^^^^^^^^^^^^^^^^^^
* Describes an application and how to find it. *)
type
UA_ApplicationDescription = record
applicationUri: UA_String;
productUri: UA_String;
applicationName: UA_LocalizedText;
applicationType: UA_ApplicationType;
gatewayServerUri: UA_String;
discoveryProfileUri: UA_String;
discoveryUrlsSize: size_t;
discoveryUrls: PUA_String;
end;
PUA_ApplicationDescription = ^UA_ApplicationDescription;
const
UA_TYPES_APPLICATIONDESCRIPTION = 38;
(**
* RequestHeader
* ^^^^^^^^^^^^^
* The header passed with every server request. *)
type
UA_RequestHeader = record
authenticationToken: UA_NodeId;
timestamp: UA_DateTime;
requestHandle: UA_UInt32;
returnDiagnostics: UA_UInt32;
auditEntryId: UA_String;
timeoutHint: UA_UInt32;
additionalHeader: UA_ExtensionObject;
end;
PUA_RequestHeader = ^UA_RequestHeader;
const
UA_TYPES_REQUESTHEADER = 39;
(**
* ResponseHeader
* ^^^^^^^^^^^^^^
* The header passed with every server response. *)
type
UA_ResponseHeader = record
timestamp: UA_DateTime;
requestHandle: UA_UInt32;
serviceResult: UA_StatusCode;
serviceDiagnostics: UA_DiagnosticInfo;
stringTableSize: size_t;
stringTable: PUA_String;
additionalHeader: UA_ExtensionObject;
end;
PUA_ResponseHeader = ^UA_ResponseHeader;
const
UA_TYPES_RESPONSEHEADER = 40;
(**
* ServiceFault
* ^^^^^^^^^^^^
* The response returned by all services when there is a service level error. *)
type
UA_ServiceFault = record
responseHeader: UA_ResponseHeader;
end;
PUA_ServiceFault = ^UA_ServiceFault;
const
UA_TYPES_SERVICEFAULT = 41;
(**
* FindServersRequest
* ^^^^^^^^^^^^^^^^^^
* Finds the servers known to the discovery server. *)
type
UA_FindServersRequest = record
requestHeader: UA_RequestHeader;
endpointUrl: UA_String;
localeIdsSize: size_t;
localeIds: PUA_String;
serverUrisSize: size_t;
serverUris: PUA_String;
end;
PUA_FindServersRequest = ^UA_FindServersRequest;
const
UA_TYPES_FINDSERVERSREQUEST = 42;
(**
* FindServersResponse
* ^^^^^^^^^^^^^^^^^^^
* Finds the servers known to the discovery server. *)
type
UA_FindServersResponse = record
responseHeader: UA_ResponseHeader;
serversSize: size_t;
servers: PUA_ApplicationDescription;
end;
PUA_FindServersResponse = ^UA_FindServersResponse;
const
UA_TYPES_FINDSERVERSRESPONSE = 43;
(**
* MessageSecurityMode
* ^^^^^^^^^^^^^^^^^^^
* The type of security to use on a message. *)
type
UA_MessageSecurityMode = (
UA_MESSAGESECURITYMODE_INVALID = 0,
UA_MESSAGESECURITYMODE_NONE = 1,
UA_MESSAGESECURITYMODE_SIGN = 2,
UA_MESSAGESECURITYMODE_SIGNANDENCRYPT = 3,
__UA_MESSAGESECURITYMODE_FORCE32BIT = $7fffffff
);
PUA_MessageSecurityMode = ^UA_MessageSecurityMode;
{$IF sizeof(UA_MessageSecurityMode) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_MESSAGESECURITYMODE = 44;
(**
* UserTokenType
* ^^^^^^^^^^^^^
* The possible user token types. *)
type
UA_UserTokenType = (
UA_USERTOKENTYPE_ANONYMOUS = 0,
UA_USERTOKENTYPE_USERNAME = 1,
UA_USERTOKENTYPE_CERTIFICATE = 2,
UA_USERTOKENTYPE_ISSUEDTOKEN = 3,
__UA_USERTOKENTYPE_FORCE32BIT = $7fffffff
);
PUA_UserTokenType = ^UA_UserTokenType;
{$IF sizeof(UA_UserTokenType) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_USERTOKENTYPE = 45;
(**
* UserTokenPolicy
* ^^^^^^^^^^^^^^^
* Describes a user token that can be used with a server. *)
type
UA_UserTokenPolicy = record
policyId: UA_String;
tokenType: UA_UserTokenType;
issuedTokenType: UA_String;
issuerEndpointUrl: UA_String;
securityPolicyUri: UA_String;
end;
PUA_UserTokenPolicy = ^UA_UserTokenPolicy;
const
UA_TYPES_USERTOKENPOLICY = 46;
(**
* EndpointDescription
* ^^^^^^^^^^^^^^^^^^^
* The description of a endpoint that can be used to access a server. *)
type
UA_EndpointDescription = record
endpointUrl: UA_String;
server: UA_ApplicationDescription;
serverCertificate: UA_ByteString;
securityMode: UA_MessageSecurityMode;
securityPolicyUri: UA_String;
userIdentityTokensSize: size_t;
userIdentityTokens: PUA_UserTokenPolicy;
transportProfileUri: UA_String;
securityLevel: UA_Byte;
end;
PUA_EndpointDescription = ^UA_EndpointDescription;
const
UA_TYPES_ENDPOINTDESCRIPTION = 47;
(**
* GetEndpointsRequest
* ^^^^^^^^^^^^^^^^^^^
* Gets the endpoints used by the server. *)
type
UA_GetEndpointsRequest = record
requestHeader: UA_RequestHeader;
endpointUrl: UA_String;
localeIdsSize: size_t;
localeIds: PUA_String;
profileUrisSize: size_t;
profileUris: PUA_String;
end;
PUA_GetEndpointsRequest = ^UA_GetEndpointsRequest;
const
UA_TYPES_GETENDPOINTSREQUEST = 48;
(**
* GetEndpointsResponse
* ^^^^^^^^^^^^^^^^^^^^
* Gets the endpoints used by the server. *)
type
UA_GetEndpointsResponse = record
responseHeader: UA_ResponseHeader;
endpointsSize: size_t;
endpoints: PUA_EndpointDescription;
end;
PUA_GetEndpointsResponse = ^UA_GetEndpointsResponse;
const
UA_TYPES_GETENDPOINTSRESPONSE = 49;
(**
* SecurityTokenRequestType
* ^^^^^^^^^^^^^^^^^^^^^^^^
* Indicates whether a token if being created or renewed. *)
type
UA_SecurityTokenRequestType = (
UA_SECURITYTOKENREQUESTTYPE_ISSUE = 0,
UA_SECURITYTOKENREQUESTTYPE_RENEW = 1,
__UA_SECURITYTOKENREQUESTTYPE_FORCE32BIT = $7fffffff
);
PUA_SecurityTokenRequestType = ^UA_SecurityTokenRequestType;
{$IF sizeof(UA_SecurityTokenRequestType) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_SECURITYTOKENREQUESTTYPE = 50;
(**
* ChannelSecurityToken
* ^^^^^^^^^^^^^^^^^^^^
* The token that identifies a set of keys for an active secure channel. *)
type
UA_ChannelSecurityToken = record
channelId: UA_UInt32;
tokenId: UA_UInt32;
createdAt: UA_DateTime;
revisedLifetime: UA_UInt32;
end;
PUA_ChannelSecurityToken = ^UA_ChannelSecurityToken;
const
UA_TYPES_CHANNELSECURITYTOKEN = 51;
(**
* OpenSecureChannelRequest
* ^^^^^^^^^^^^^^^^^^^^^^^^
* Creates a secure channel with a server. *)
type
UA_OpenSecureChannelRequest = record
requestHeader: UA_RequestHeader;
clientProtocolVersion: UA_UInt32;
requestType: UA_SecurityTokenRequestType;
securityMode: UA_MessageSecurityMode;
clientNonce: UA_ByteString;
requestedLifetime: UA_UInt32;
end;
PUA_OpenSecureChannelRequest = ^UA_OpenSecureChannelRequest;
const
UA_TYPES_OPENSECURECHANNELREQUEST = 52;
(**
* OpenSecureChannelResponse
* ^^^^^^^^^^^^^^^^^^^^^^^^^
* Creates a secure channel with a server. *)
type
UA_OpenSecureChannelResponse = record
responseHeader: UA_ResponseHeader;
serverProtocolVersion: UA_UInt32;
securityToken: UA_ChannelSecurityToken;
serverNonce: UA_ByteString;
end;
PUA_OpenSecureChannelResponse = ^UA_OpenSecureChannelResponse;
const
UA_TYPES_OPENSECURECHANNELRESPONSE = 53;
(**
* CloseSecureChannelRequest
* ^^^^^^^^^^^^^^^^^^^^^^^^^
* Closes a secure channel. *)
type
UA_CloseSecureChannelRequest = record
requestHeader: UA_RequestHeader;
end;
PUA_CloseSecureChannelRequest = ^UA_CloseSecureChannelRequest;
const
UA_TYPES_CLOSESECURECHANNELREQUEST = 54;
(**
* CloseSecureChannelResponse
* ^^^^^^^^^^^^^^^^^^^^^^^^^^
* Closes a secure channel. *)
type
UA_CloseSecureChannelResponse = record
responseHeader: UA_ResponseHeader;
end;
PUA_CloseSecureChannelResponse = ^UA_CloseSecureChannelResponse;
const
UA_TYPES_CLOSESECURECHANNELRESPONSE = 55;
(**
* SignedSoftwareCertificate
* ^^^^^^^^^^^^^^^^^^^^^^^^^
* A software certificate with a digital signature. *)
type
UA_SignedSoftwareCertificate = record
certificateData: UA_ByteString;
signature: UA_ByteString;
end;
PUA_SignedSoftwareCertificate = ^UA_SignedSoftwareCertificate;
const
UA_TYPES_SIGNEDSOFTWARECERTIFICATE = 56;
(**
* SignatureData
* ^^^^^^^^^^^^^
* A digital signature. *)
type
UA_SignatureData = record
algorithm: UA_String;
signature: UA_ByteString;
end;
PUA_SignatureData = ^UA_SignatureData;
const
UA_TYPES_SIGNATUREDATA = 57;
(**
* CreateSessionRequest
* ^^^^^^^^^^^^^^^^^^^^
* Creates a new session with the server. *)
type
UA_CreateSessionRequest = record
requestHeader: UA_RequestHeader;
clientDescription: UA_ApplicationDescription;
serverUri: UA_String;
endpointUrl: UA_String;
sessionName: UA_String;
clientNonce: UA_ByteString;
clientCertificate: UA_ByteString;
requestedSessionTimeout: UA_Double;
maxResponseMessageSize: UA_UInt32;
end;
PUA_CreateSessionRequest = ^UA_CreateSessionRequest;
const
UA_TYPES_CREATESESSIONREQUEST = 58;
(**
* CreateSessionResponse
* ^^^^^^^^^^^^^^^^^^^^^
* Creates a new session with the server. *)
type
UA_CreateSessionResponse = record
responseHeader: UA_ResponseHeader;
sessionId: UA_NodeId;
authenticationToken: UA_NodeId;
revisedSessionTimeout: UA_Double;
serverNonce: UA_ByteString;
serverCertificate: UA_ByteString;
serverEndpointsSize: size_t;
serverEndpoints: PUA_EndpointDescription;
serverSoftwareCertificatesSize: size_t;
serverSoftwareCertificates: PUA_SignedSoftwareCertificate;
serverSignature: UA_SignatureData;
maxRequestMessageSize: UA_UInt32;
end;
PUA_CreateSessionResponse = ^UA_CreateSessionResponse;
const
UA_TYPES_CREATESESSIONRESPONSE = 59;
(**
* UserIdentityToken
* ^^^^^^^^^^^^^^^^^
* A base type for a user identity token. *)
type
UA_UserIdentityToken = record
policyId: UA_String;
end;
PUA_UserIdentityToken = ^UA_UserIdentityToken;
const
UA_TYPES_USERIDENTITYTOKEN = 60;
(**
* AnonymousIdentityToken
* ^^^^^^^^^^^^^^^^^^^^^^
* A token representing an anonymous user. *)
type
UA_AnonymousIdentityToken = record
policyId: UA_String;
end;
PUA_AnonymousIdentityToken = ^UA_AnonymousIdentityToken;
const
UA_TYPES_ANONYMOUSIDENTITYTOKEN = 61;
(**
* UserNameIdentityToken
* ^^^^^^^^^^^^^^^^^^^^^
* A token representing a user identified by a user name and password. *)
type
UA_UserNameIdentityToken = record
policyId: UA_String;
userName: UA_String;
password: UA_ByteString;
encryptionAlgorithm: UA_String;
end;
PUA_UserNameIdentityToken = ^UA_UserNameIdentityToken;
const
UA_TYPES_USERNAMEIDENTITYTOKEN = 62;
(**
* X509IdentityToken
* ^^^^^^^^^^^^^^^^^
* A token representing a user identified by an X509 certificate. *)
type
UA_X509IdentityToken = record
policyId: UA_String;
certificateData: UA_ByteString;
end;
PUA_X509IdentityToken = ^UA_X509IdentityToken;
const
UA_TYPES_X509IDENTITYTOKEN = 63;
(**
* IssuedIdentityToken
* ^^^^^^^^^^^^^^^^^^^
* A token representing a user identified by a WS-Security XML token. *)
type
UA_IssuedIdentityToken = record
policyId: UA_String;
tokenData: UA_ByteString;
encryptionAlgorithm: UA_String;
end;
PUA_IssuedIdentityToken = ^UA_IssuedIdentityToken;
const
UA_TYPES_ISSUEDIDENTITYTOKEN = 64;
(**
* ActivateSessionRequest
* ^^^^^^^^^^^^^^^^^^^^^^
* Activates a session with the server. *)
type
UA_ActivateSessionRequest = record
requestHeader: UA_RequestHeader;
clientSignature: UA_SignatureData;
clientSoftwareCertificatesSize: size_t;
clientSoftwareCertificates: PUA_SignedSoftwareCertificate;
localeIdsSize: size_t;
localeIds: PUA_String;
userIdentityToken: UA_ExtensionObject;
userTokenSignature: UA_SignatureData;
end;
PUA_ActivateSessionRequest = ^UA_ActivateSessionRequest;
const
UA_TYPES_ACTIVATESESSIONREQUEST = 65;
(**
* ActivateSessionResponse
* ^^^^^^^^^^^^^^^^^^^^^^^
* Activates a session with the server. *)
type
UA_ActivateSessionResponse = record
responseHeader: UA_ResponseHeader;
serverNonce: UA_ByteString;
resultsSize: size_t;
results: PUA_StatusCode;
diagnosticInfosSize: size_t;
diagnosticInfos: PUA_DiagnosticInfo;
end;
PUA_ActivateSessionResponse = ^UA_ActivateSessionResponse;
const
UA_TYPES_ACTIVATESESSIONRESPONSE = 66;
(**
* CloseSessionRequest
* ^^^^^^^^^^^^^^^^^^^
* Closes a session with the server. *)
type
UA_CloseSessionRequest = record
requestHeader: UA_RequestHeader;
deleteSubscriptions: UA_Boolean;
end;
PUA_CloseSessionRequest = ^UA_CloseSessionRequest;
const
UA_TYPES_CLOSESESSIONREQUEST = 67;
(**
* CloseSessionResponse
* ^^^^^^^^^^^^^^^^^^^^
* Closes a session with the server. *)
type
UA_CloseSessionResponse = record
responseHeader: UA_ResponseHeader;
end;
PUA_CloseSessionResponse = ^UA_CloseSessionResponse;
const
UA_TYPES_CLOSESESSIONRESPONSE = 68;
(**
* NodeAttributesMask
* ^^^^^^^^^^^^^^^^^^
* The bits used to specify default attributes for a new node. *)
type
UA_NodeAttributesMask = (
UA_NODEATTRIBUTESMASK_NONE = 0,
UA_NODEATTRIBUTESMASK_ACCESSLEVEL = 1,
UA_NODEATTRIBUTESMASK_ARRAYDIMENSIONS = 2,
UA_NODEATTRIBUTESMASK_BROWSENAME = 4,
UA_NODEATTRIBUTESMASK_CONTAINSNOLOOPS = 8,
UA_NODEATTRIBUTESMASK_DATATYPE = 16,
UA_NODEATTRIBUTESMASK_DESCRIPTION = 32,
UA_NODEATTRIBUTESMASK_DISPLAYNAME = 64,
UA_NODEATTRIBUTESMASK_EVENTNOTIFIER = 128,
UA_NODEATTRIBUTESMASK_EXECUTABLE = 256,
UA_NODEATTRIBUTESMASK_HISTORIZING = 512,
UA_NODEATTRIBUTESMASK_INVERSENAME = 1024,
UA_NODEATTRIBUTESMASK_ISABSTRACT = 2048,
UA_NODEATTRIBUTESMASK_MINIMUMSAMPLINGINTERVAL = 4096,
UA_NODEATTRIBUTESMASK_NODECLASS = 8192,
UA_NODEATTRIBUTESMASK_NODEID = 16384,
UA_NODEATTRIBUTESMASK_SYMMETRIC = 32768,
UA_NODEATTRIBUTESMASK_USERACCESSLEVEL = 65536,
UA_NODEATTRIBUTESMASK_USEREXECUTABLE = 131072,
UA_NODEATTRIBUTESMASK_USERWRITEMASK = 262144,
UA_NODEATTRIBUTESMASK_VALUERANK = 524288,
UA_NODEATTRIBUTESMASK_WRITEMASK = 1048576,
UA_NODEATTRIBUTESMASK_VALUE = 2097152,
UA_NODEATTRIBUTESMASK_DATATYPEDEFINITION = 4194304,
UA_NODEATTRIBUTESMASK_ROLEPERMISSIONS = 8388608,
UA_NODEATTRIBUTESMASK_ACCESSRESTRICTIONS = 16777216,
UA_NODEATTRIBUTESMASK_ALL = 33554431,
UA_NODEATTRIBUTESMASK_BASENODE = 26501220,
UA_NODEATTRIBUTESMASK_OBJECT = 26501348,
UA_NODEATTRIBUTESMASK_OBJECTTYPE = 26503268,
UA_NODEATTRIBUTESMASK_VARIABLE = 26571383,
UA_NODEATTRIBUTESMASK_VARIABLETYPE = 28600438,
UA_NODEATTRIBUTESMASK_METHOD = 26632548,
UA_NODEATTRIBUTESMASK_REFERENCETYPE = 26537060,
UA_NODEATTRIBUTESMASK_VIEW = 26501356,
__UA_NODEATTRIBUTESMASK_FORCE32BIT = $7fffffff
);
PUA_NodeAttributesMask = ^UA_NodeAttributesMask;
{$IF sizeof(UA_NodeAttributesMask) <> sizeof(UA_Int32)}{$MESSAGE ERROR 'enum_must_be_32bit'}{$IFEND}
const
UA_TYPES_NODEATTRIBUTESMASK = 69;
(**
* NodeAttributes
* ^^^^^^^^^^^^^^
* The base attributes for all nodes. *)
type
UA_NodeAttributes = record
specifiedAttributes: UA_UInt32;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
writeMask: UA_UInt32;
userWriteMask: UA_UInt32;
end;
PUA_NodeAttributes = ^UA_NodeAttributes;
const
UA_TYPES_NODEATTRIBUTES = 70;
(**
* ObjectAttributes
* ^^^^^^^^^^^^^^^^
* The attributes for an object node. *)
type
UA_ObjectAttributes = record
specifiedAttributes: UA_UInt32;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
writeMask: UA_UInt32;
userWriteMask: UA_UInt32;
eventNotifier: UA_Byte;
end;
PUA_ObjectAttributes = ^UA_ObjectAttributes;
const
UA_TYPES_OBJECTATTRIBUTES = 71;
(**
* VariableAttributes
* ^^^^^^^^^^^^^^^^^^
* The attributes for a variable node. *)
type
UA_VariableAttributes = record
specifiedAttributes: UA_UInt32;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
writeMask: UA_UInt32;
userWriteMask: UA_UInt32;
value: UA_Variant;
dataType: UA_NodeId;
valueRank: UA_Int32;
arrayDimensionsSize: size_t;
arrayDimensions: PUA_UInt32;
accessLevel: UA_Byte;
userAccessLevel: UA_Byte;
minimumSamplingInterval: UA_Double;
historizing: UA_Boolean;
end;
PUA_VariableAttributes = ^UA_VariableAttributes;
const
UA_TYPES_VARIABLEATTRIBUTES = 72;
(**
* MethodAttributes
* ^^^^^^^^^^^^^^^^
* The attributes for a method node. *)
type
UA_MethodAttributes = record
specifiedAttributes: UA_UInt32;
displayName: UA_LocalizedText;
description: UA_LocalizedText;
writeMask: UA_UInt32;
userWriteMask: UA_UInt32;
executable: UA_Boolean;
userExecutable: UA_Boolean;
end;
PUA_MethodAttributes = ^UA_MethodAttributes;