WPILibC++ 2024.3.2
ntcore_c_types.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5// THIS FILE WAS AUTO-GENERATED BY ./ntcore/generate_topics.py. DO NOT MODIFY
6
7#pragma once
8
9#include <stdint.h>
10
11#include "ntcore_c.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17
18/**
19 * Timestamped Boolean.
20 * @ingroup ntcore_c_api
21 */
23 /**
24 * Time in local time base.
25 */
26 int64_t time;
27
28 /**
29 * Time in server time base. May be 0 or 1 for locally set values.
30 */
31 int64_t serverTime;
32
33 /**
34 * Value.
35 */
37};
38
39/**
40 * @defgroup ntcore_Boolean_cfunc Boolean Functions
41 * @ingroup ntcore_c_api
42 * @{
43 */
44
45/**
46 * Publish a new value.
47 *
48 * @param pubentry publisher or entry handle
49 * @param time timestamp; 0 indicates current NT time should be used
50 * @param value value to publish
51 */
52NT_Bool NT_SetBoolean(NT_Handle pubentry, int64_t time, NT_Bool value);
53
54/**
55 * Publish a default value.
56 * On reconnect, a default value will never be used in preference to a
57 * published value.
58 *
59 * @param pubentry publisher or entry handle
60 * @param defaultValue default value
61 */
63
64/**
65 * Get the last published value.
66 * If no value has been published, returns the passed defaultValue.
67 *
68 * @param subentry subscriber or entry handle
69 * @param defaultValue default value to return if no value has been published
70 * @return value
71 */
72NT_Bool NT_GetBoolean(NT_Handle subentry, NT_Bool defaultValue);
73
74/**
75 * Get the last published value along with its timestamp.
76 * If no value has been published, returns the passed defaultValue and a
77 * timestamp of 0.
78 *
79 * @param subentry subscriber or entry handle
80 * @param defaultValue default value to return if no value has been published
81 * @param value timestamped value (output)
82 */
83void NT_GetAtomicBoolean(NT_Handle subentry, NT_Bool defaultValue, struct NT_TimestampedBoolean* value);
84
85/**
86 * Disposes a timestamped value (as returned by NT_GetAtomicBoolean).
87 *
88 * @param value timestamped value
89 */
91
92/**
93 * Get an array of all value changes since the last call to ReadQueue.
94 * Also provides a timestamp for each value.
95 *
96 * @note The "poll storage" subscribe option can be used to set the queue
97 * depth.
98 *
99 * @param subentry subscriber or entry handle
100 * @param len length of returned array (output)
101 * @return Array of timestamped values; NULL if no new changes have
102 * been published since the previous call.
103 */
105
106/**
107 * Frees a timestamped array of values (as returned by NT_ReadQueueBoolean).
108 *
109 * @param arr array
110 * @param len length of array
111 */
112void NT_FreeQueueBoolean(struct NT_TimestampedBoolean* arr, size_t len);
113/**
114 * Get an array of all value changes since the last call to ReadQueue.
115 *
116 * @note The "poll storage" subscribe option can be used to set the queue
117 * depth.
118 *
119 * @param subentry subscriber or entry handle
120 * @param len length of returned array (output)
121 * @return Array of values; NULL if no new changes have
122 * been published since the previous call.
123 */
125
126/** @} */
127
128/**
129 * Timestamped Integer.
130 * @ingroup ntcore_c_api
131 */
133 /**
134 * Time in local time base.
135 */
136 int64_t time;
137
138 /**
139 * Time in server time base. May be 0 or 1 for locally set values.
140 */
141 int64_t serverTime;
142
143 /**
144 * Value.
145 */
146 int64_t value;
147};
148
149/**
150 * @defgroup ntcore_Integer_cfunc Integer Functions
151 * @ingroup ntcore_c_api
152 * @{
153 */
154
155/**
156 * Publish a new value.
157 *
158 * @param pubentry publisher or entry handle
159 * @param time timestamp; 0 indicates current NT time should be used
160 * @param value value to publish
161 */
162NT_Bool NT_SetInteger(NT_Handle pubentry, int64_t time, int64_t value);
163
164/**
165 * Publish a default value.
166 * On reconnect, a default value will never be used in preference to a
167 * published value.
168 *
169 * @param pubentry publisher or entry handle
170 * @param defaultValue default value
171 */
172NT_Bool NT_SetDefaultInteger(NT_Handle pubentry, int64_t defaultValue);
173
174/**
175 * Get the last published value.
176 * If no value has been published, returns the passed defaultValue.
177 *
178 * @param subentry subscriber or entry handle
179 * @param defaultValue default value to return if no value has been published
180 * @return value
181 */
182int64_t NT_GetInteger(NT_Handle subentry, int64_t defaultValue);
183
184/**
185 * Get the last published value along with its timestamp.
186 * If no value has been published, returns the passed defaultValue and a
187 * timestamp of 0.
188 *
189 * @param subentry subscriber or entry handle
190 * @param defaultValue default value to return if no value has been published
191 * @param value timestamped value (output)
192 */
193void NT_GetAtomicInteger(NT_Handle subentry, int64_t defaultValue, struct NT_TimestampedInteger* value);
194
195/**
196 * Disposes a timestamped value (as returned by NT_GetAtomicInteger).
197 *
198 * @param value timestamped value
199 */
201
202/**
203 * Get an array of all value changes since the last call to ReadQueue.
204 * Also provides a timestamp for each value.
205 *
206 * @note The "poll storage" subscribe option can be used to set the queue
207 * depth.
208 *
209 * @param subentry subscriber or entry handle
210 * @param len length of returned array (output)
211 * @return Array of timestamped values; NULL if no new changes have
212 * been published since the previous call.
213 */
215
216/**
217 * Frees a timestamped array of values (as returned by NT_ReadQueueInteger).
218 *
219 * @param arr array
220 * @param len length of array
221 */
222void NT_FreeQueueInteger(struct NT_TimestampedInteger* arr, size_t len);
223/**
224 * Get an array of all value changes since the last call to ReadQueue.
225 *
226 * @note The "poll storage" subscribe option can be used to set the queue
227 * depth.
228 *
229 * @param subentry subscriber or entry handle
230 * @param len length of returned array (output)
231 * @return Array of values; NULL if no new changes have
232 * been published since the previous call.
233 */
234int64_t* NT_ReadQueueValuesInteger(NT_Handle subentry, size_t* len);
235
236/** @} */
237
238/**
239 * Timestamped Float.
240 * @ingroup ntcore_c_api
241 */
243 /**
244 * Time in local time base.
245 */
246 int64_t time;
247
248 /**
249 * Time in server time base. May be 0 or 1 for locally set values.
250 */
251 int64_t serverTime;
252
253 /**
254 * Value.
255 */
256 float value;
257};
258
259/**
260 * @defgroup ntcore_Float_cfunc Float Functions
261 * @ingroup ntcore_c_api
262 * @{
263 */
264
265/**
266 * Publish a new value.
267 *
268 * @param pubentry publisher or entry handle
269 * @param time timestamp; 0 indicates current NT time should be used
270 * @param value value to publish
271 */
272NT_Bool NT_SetFloat(NT_Handle pubentry, int64_t time, float value);
273
274/**
275 * Publish a default value.
276 * On reconnect, a default value will never be used in preference to a
277 * published value.
278 *
279 * @param pubentry publisher or entry handle
280 * @param defaultValue default value
281 */
282NT_Bool NT_SetDefaultFloat(NT_Handle pubentry, float defaultValue);
283
284/**
285 * Get the last published value.
286 * If no value has been published, returns the passed defaultValue.
287 *
288 * @param subentry subscriber or entry handle
289 * @param defaultValue default value to return if no value has been published
290 * @return value
291 */
292float NT_GetFloat(NT_Handle subentry, float defaultValue);
293
294/**
295 * Get the last published value along with its timestamp.
296 * If no value has been published, returns the passed defaultValue and a
297 * timestamp of 0.
298 *
299 * @param subentry subscriber or entry handle
300 * @param defaultValue default value to return if no value has been published
301 * @param value timestamped value (output)
302 */
303void NT_GetAtomicFloat(NT_Handle subentry, float defaultValue, struct NT_TimestampedFloat* value);
304
305/**
306 * Disposes a timestamped value (as returned by NT_GetAtomicFloat).
307 *
308 * @param value timestamped value
309 */
311
312/**
313 * Get an array of all value changes since the last call to ReadQueue.
314 * Also provides a timestamp for each value.
315 *
316 * @note The "poll storage" subscribe option can be used to set the queue
317 * depth.
318 *
319 * @param subentry subscriber or entry handle
320 * @param len length of returned array (output)
321 * @return Array of timestamped values; NULL if no new changes have
322 * been published since the previous call.
323 */
324struct NT_TimestampedFloat* NT_ReadQueueFloat(NT_Handle subentry, size_t* len);
325
326/**
327 * Frees a timestamped array of values (as returned by NT_ReadQueueFloat).
328 *
329 * @param arr array
330 * @param len length of array
331 */
332void NT_FreeQueueFloat(struct NT_TimestampedFloat* arr, size_t len);
333/**
334 * Get an array of all value changes since the last call to ReadQueue.
335 *
336 * @note The "poll storage" subscribe option can be used to set the queue
337 * depth.
338 *
339 * @param subentry subscriber or entry handle
340 * @param len length of returned array (output)
341 * @return Array of values; NULL if no new changes have
342 * been published since the previous call.
343 */
344float* NT_ReadQueueValuesFloat(NT_Handle subentry, size_t* len);
345
346/** @} */
347
348/**
349 * Timestamped Double.
350 * @ingroup ntcore_c_api
351 */
353 /**
354 * Time in local time base.
355 */
356 int64_t time;
357
358 /**
359 * Time in server time base. May be 0 or 1 for locally set values.
360 */
361 int64_t serverTime;
362
363 /**
364 * Value.
365 */
366 double value;
367};
368
369/**
370 * @defgroup ntcore_Double_cfunc Double Functions
371 * @ingroup ntcore_c_api
372 * @{
373 */
374
375/**
376 * Publish a new value.
377 *
378 * @param pubentry publisher or entry handle
379 * @param time timestamp; 0 indicates current NT time should be used
380 * @param value value to publish
381 */
382NT_Bool NT_SetDouble(NT_Handle pubentry, int64_t time, double value);
383
384/**
385 * Publish a default value.
386 * On reconnect, a default value will never be used in preference to a
387 * published value.
388 *
389 * @param pubentry publisher or entry handle
390 * @param defaultValue default value
391 */
392NT_Bool NT_SetDefaultDouble(NT_Handle pubentry, double defaultValue);
393
394/**
395 * Get the last published value.
396 * If no value has been published, returns the passed defaultValue.
397 *
398 * @param subentry subscriber or entry handle
399 * @param defaultValue default value to return if no value has been published
400 * @return value
401 */
402double NT_GetDouble(NT_Handle subentry, double defaultValue);
403
404/**
405 * Get the last published value along with its timestamp.
406 * If no value has been published, returns the passed defaultValue and a
407 * timestamp of 0.
408 *
409 * @param subentry subscriber or entry handle
410 * @param defaultValue default value to return if no value has been published
411 * @param value timestamped value (output)
412 */
413void NT_GetAtomicDouble(NT_Handle subentry, double defaultValue, struct NT_TimestampedDouble* value);
414
415/**
416 * Disposes a timestamped value (as returned by NT_GetAtomicDouble).
417 *
418 * @param value timestamped value
419 */
421
422/**
423 * Get an array of all value changes since the last call to ReadQueue.
424 * Also provides a timestamp for each value.
425 *
426 * @note The "poll storage" subscribe option can be used to set the queue
427 * depth.
428 *
429 * @param subentry subscriber or entry handle
430 * @param len length of returned array (output)
431 * @return Array of timestamped values; NULL if no new changes have
432 * been published since the previous call.
433 */
434struct NT_TimestampedDouble* NT_ReadQueueDouble(NT_Handle subentry, size_t* len);
435
436/**
437 * Frees a timestamped array of values (as returned by NT_ReadQueueDouble).
438 *
439 * @param arr array
440 * @param len length of array
441 */
442void NT_FreeQueueDouble(struct NT_TimestampedDouble* arr, size_t len);
443/**
444 * Get an array of all value changes since the last call to ReadQueue.
445 *
446 * @note The "poll storage" subscribe option can be used to set the queue
447 * depth.
448 *
449 * @param subentry subscriber or entry handle
450 * @param len length of returned array (output)
451 * @return Array of values; NULL if no new changes have
452 * been published since the previous call.
453 */
454double* NT_ReadQueueValuesDouble(NT_Handle subentry, size_t* len);
455
456/** @} */
457
458/**
459 * Timestamped String.
460 * @ingroup ntcore_c_api
461 */
463 /**
464 * Time in local time base.
465 */
466 int64_t time;
467
468 /**
469 * Time in server time base. May be 0 or 1 for locally set values.
470 */
471 int64_t serverTime;
472
473 /**
474 * Value.
475 */
476 char* value;
477 /**
478 * Value length.
479 */
480 size_t len;
481
482};
483
484/**
485 * @defgroup ntcore_String_cfunc String Functions
486 * @ingroup ntcore_c_api
487 * @{
488 */
489
490/**
491 * Publish a new value.
492 *
493 * @param pubentry publisher or entry handle
494 * @param time timestamp; 0 indicates current NT time should be used
495 * @param value value to publish
496 * @param len length of value
497
498 */
499NT_Bool NT_SetString(NT_Handle pubentry, int64_t time, const char* value, size_t len);
500
501/**
502 * Publish a default value.
503 * On reconnect, a default value will never be used in preference to a
504 * published value.
505 *
506 * @param pubentry publisher or entry handle
507 * @param defaultValue default value
508 * @param defaultValueLen length of default value
509
510 */
511NT_Bool NT_SetDefaultString(NT_Handle pubentry, const char* defaultValue, size_t defaultValueLen);
512
513/**
514 * Get the last published value.
515 * If no value has been published, returns the passed defaultValue.
516 *
517 * @param subentry subscriber or entry handle
518 * @param defaultValue default value to return if no value has been published
519 * @param defaultValueLen length of default value
520 * @param len length of returned value (output)
521
522 * @return value
523 */
524char* NT_GetString(NT_Handle subentry, const char* defaultValue, size_t defaultValueLen, size_t* len);
525
526/**
527 * Get the last published value along with its timestamp.
528 * If no value has been published, returns the passed defaultValue and a
529 * timestamp of 0.
530 *
531 * @param subentry subscriber or entry handle
532 * @param defaultValue default value to return if no value has been published
533 * @param defaultValueLen length of default value
534
535 * @param value timestamped value (output)
536 */
537void NT_GetAtomicString(NT_Handle subentry, const char* defaultValue, size_t defaultValueLen, struct NT_TimestampedString* value);
538
539/**
540 * Disposes a timestamped value (as returned by NT_GetAtomicString).
541 *
542 * @param value timestamped value
543 */
545
546/**
547 * Get an array of all value changes since the last call to ReadQueue.
548 * Also provides a timestamp for each value.
549 *
550 * @note The "poll storage" subscribe option can be used to set the queue
551 * depth.
552 *
553 * @param subentry subscriber or entry handle
554 * @param len length of returned array (output)
555 * @return Array of timestamped values; NULL if no new changes have
556 * been published since the previous call.
557 */
559
560/**
561 * Frees a timestamped array of values (as returned by NT_ReadQueueString).
562 *
563 * @param arr array
564 * @param len length of array
565 */
567
568/** @} */
569
570/**
571 * Timestamped Raw.
572 * @ingroup ntcore_c_api
573 */
575 /**
576 * Time in local time base.
577 */
578 int64_t time;
579
580 /**
581 * Time in server time base. May be 0 or 1 for locally set values.
582 */
583 int64_t serverTime;
584
585 /**
586 * Value.
587 */
588 uint8_t* value;
589 /**
590 * Value length.
591 */
592 size_t len;
593
594};
595
596/**
597 * @defgroup ntcore_Raw_cfunc Raw Functions
598 * @ingroup ntcore_c_api
599 * @{
600 */
601
602/**
603 * Publish a new value.
604 *
605 * @param pubentry publisher or entry handle
606 * @param time timestamp; 0 indicates current NT time should be used
607 * @param value value to publish
608 * @param len length of value
609
610 */
611NT_Bool NT_SetRaw(NT_Handle pubentry, int64_t time, const uint8_t* value, size_t len);
612
613/**
614 * Publish a default value.
615 * On reconnect, a default value will never be used in preference to a
616 * published value.
617 *
618 * @param pubentry publisher or entry handle
619 * @param defaultValue default value
620 * @param defaultValueLen length of default value
621
622 */
623NT_Bool NT_SetDefaultRaw(NT_Handle pubentry, const uint8_t* defaultValue, size_t defaultValueLen);
624
625/**
626 * Get the last published value.
627 * If no value has been published, returns the passed defaultValue.
628 *
629 * @param subentry subscriber or entry handle
630 * @param defaultValue default value to return if no value has been published
631 * @param defaultValueLen length of default value
632 * @param len length of returned value (output)
633
634 * @return value
635 */
636uint8_t* NT_GetRaw(NT_Handle subentry, const uint8_t* defaultValue, size_t defaultValueLen, size_t* len);
637
638/**
639 * Get the last published value along with its timestamp.
640 * If no value has been published, returns the passed defaultValue and a
641 * timestamp of 0.
642 *
643 * @param subentry subscriber or entry handle
644 * @param defaultValue default value to return if no value has been published
645 * @param defaultValueLen length of default value
646
647 * @param value timestamped value (output)
648 */
649void NT_GetAtomicRaw(NT_Handle subentry, const uint8_t* defaultValue, size_t defaultValueLen, struct NT_TimestampedRaw* value);
650
651/**
652 * Disposes a timestamped value (as returned by NT_GetAtomicRaw).
653 *
654 * @param value timestamped value
655 */
657
658/**
659 * Get an array of all value changes since the last call to ReadQueue.
660 * Also provides a timestamp for each value.
661 *
662 * @note The "poll storage" subscribe option can be used to set the queue
663 * depth.
664 *
665 * @param subentry subscriber or entry handle
666 * @param len length of returned array (output)
667 * @return Array of timestamped values; NULL if no new changes have
668 * been published since the previous call.
669 */
671
672/**
673 * Frees a timestamped array of values (as returned by NT_ReadQueueRaw).
674 *
675 * @param arr array
676 * @param len length of array
677 */
678void NT_FreeQueueRaw(struct NT_TimestampedRaw* arr, size_t len);
679
680/** @} */
681
682/**
683 * Timestamped BooleanArray.
684 * @ingroup ntcore_c_api
685 */
687 /**
688 * Time in local time base.
689 */
690 int64_t time;
691
692 /**
693 * Time in server time base. May be 0 or 1 for locally set values.
694 */
695 int64_t serverTime;
696
697 /**
698 * Value.
699 */
701 /**
702 * Value length.
703 */
704 size_t len;
705
706};
707
708/**
709 * @defgroup ntcore_BooleanArray_cfunc BooleanArray Functions
710 * @ingroup ntcore_c_api
711 * @{
712 */
713
714/**
715 * Publish a new value.
716 *
717 * @param pubentry publisher or entry handle
718 * @param time timestamp; 0 indicates current NT time should be used
719 * @param value value to publish
720 * @param len length of value
721
722 */
723NT_Bool NT_SetBooleanArray(NT_Handle pubentry, int64_t time, const NT_Bool* value, size_t len);
724
725/**
726 * Publish a default value.
727 * On reconnect, a default value will never be used in preference to a
728 * published value.
729 *
730 * @param pubentry publisher or entry handle
731 * @param defaultValue default value
732 * @param defaultValueLen length of default value
733
734 */
735NT_Bool NT_SetDefaultBooleanArray(NT_Handle pubentry, const NT_Bool* defaultValue, size_t defaultValueLen);
736
737/**
738 * Get the last published value.
739 * If no value has been published, returns the passed defaultValue.
740 *
741 * @param subentry subscriber or entry handle
742 * @param defaultValue default value to return if no value has been published
743 * @param defaultValueLen length of default value
744 * @param len length of returned value (output)
745
746 * @return value
747 */
748NT_Bool* NT_GetBooleanArray(NT_Handle subentry, const NT_Bool* defaultValue, size_t defaultValueLen, size_t* len);
749
750/**
751 * Get the last published value along with its timestamp.
752 * If no value has been published, returns the passed defaultValue and a
753 * timestamp of 0.
754 *
755 * @param subentry subscriber or entry handle
756 * @param defaultValue default value to return if no value has been published
757 * @param defaultValueLen length of default value
758
759 * @param value timestamped value (output)
760 */
761void NT_GetAtomicBooleanArray(NT_Handle subentry, const NT_Bool* defaultValue, size_t defaultValueLen, struct NT_TimestampedBooleanArray* value);
762
763/**
764 * Disposes a timestamped value (as returned by NT_GetAtomicBooleanArray).
765 *
766 * @param value timestamped value
767 */
769
770/**
771 * Get an array of all value changes since the last call to ReadQueue.
772 * Also provides a timestamp for each value.
773 *
774 * @note The "poll storage" subscribe option can be used to set the queue
775 * depth.
776 *
777 * @param subentry subscriber or entry handle
778 * @param len length of returned array (output)
779 * @return Array of timestamped values; NULL if no new changes have
780 * been published since the previous call.
781 */
783
784/**
785 * Frees a timestamped array of values (as returned by NT_ReadQueueBooleanArray).
786 *
787 * @param arr array
788 * @param len length of array
789 */
791
792/** @} */
793
794/**
795 * Timestamped IntegerArray.
796 * @ingroup ntcore_c_api
797 */
799 /**
800 * Time in local time base.
801 */
802 int64_t time;
803
804 /**
805 * Time in server time base. May be 0 or 1 for locally set values.
806 */
807 int64_t serverTime;
808
809 /**
810 * Value.
811 */
812 int64_t* value;
813 /**
814 * Value length.
815 */
816 size_t len;
817
818};
819
820/**
821 * @defgroup ntcore_IntegerArray_cfunc IntegerArray Functions
822 * @ingroup ntcore_c_api
823 * @{
824 */
825
826/**
827 * Publish a new value.
828 *
829 * @param pubentry publisher or entry handle
830 * @param time timestamp; 0 indicates current NT time should be used
831 * @param value value to publish
832 * @param len length of value
833
834 */
835NT_Bool NT_SetIntegerArray(NT_Handle pubentry, int64_t time, const int64_t* value, size_t len);
836
837/**
838 * Publish a default value.
839 * On reconnect, a default value will never be used in preference to a
840 * published value.
841 *
842 * @param pubentry publisher or entry handle
843 * @param defaultValue default value
844 * @param defaultValueLen length of default value
845
846 */
847NT_Bool NT_SetDefaultIntegerArray(NT_Handle pubentry, const int64_t* defaultValue, size_t defaultValueLen);
848
849/**
850 * Get the last published value.
851 * If no value has been published, returns the passed defaultValue.
852 *
853 * @param subentry subscriber or entry handle
854 * @param defaultValue default value to return if no value has been published
855 * @param defaultValueLen length of default value
856 * @param len length of returned value (output)
857
858 * @return value
859 */
860int64_t* NT_GetIntegerArray(NT_Handle subentry, const int64_t* defaultValue, size_t defaultValueLen, size_t* len);
861
862/**
863 * Get the last published value along with its timestamp.
864 * If no value has been published, returns the passed defaultValue and a
865 * timestamp of 0.
866 *
867 * @param subentry subscriber or entry handle
868 * @param defaultValue default value to return if no value has been published
869 * @param defaultValueLen length of default value
870
871 * @param value timestamped value (output)
872 */
873void NT_GetAtomicIntegerArray(NT_Handle subentry, const int64_t* defaultValue, size_t defaultValueLen, struct NT_TimestampedIntegerArray* value);
874
875/**
876 * Disposes a timestamped value (as returned by NT_GetAtomicIntegerArray).
877 *
878 * @param value timestamped value
879 */
881
882/**
883 * Get an array of all value changes since the last call to ReadQueue.
884 * Also provides a timestamp for each value.
885 *
886 * @note The "poll storage" subscribe option can be used to set the queue
887 * depth.
888 *
889 * @param subentry subscriber or entry handle
890 * @param len length of returned array (output)
891 * @return Array of timestamped values; NULL if no new changes have
892 * been published since the previous call.
893 */
895
896/**
897 * Frees a timestamped array of values (as returned by NT_ReadQueueIntegerArray).
898 *
899 * @param arr array
900 * @param len length of array
901 */
903
904/** @} */
905
906/**
907 * Timestamped FloatArray.
908 * @ingroup ntcore_c_api
909 */
911 /**
912 * Time in local time base.
913 */
914 int64_t time;
915
916 /**
917 * Time in server time base. May be 0 or 1 for locally set values.
918 */
919 int64_t serverTime;
920
921 /**
922 * Value.
923 */
924 float* value;
925 /**
926 * Value length.
927 */
928 size_t len;
929
930};
931
932/**
933 * @defgroup ntcore_FloatArray_cfunc FloatArray Functions
934 * @ingroup ntcore_c_api
935 * @{
936 */
937
938/**
939 * Publish a new value.
940 *
941 * @param pubentry publisher or entry handle
942 * @param time timestamp; 0 indicates current NT time should be used
943 * @param value value to publish
944 * @param len length of value
945
946 */
947NT_Bool NT_SetFloatArray(NT_Handle pubentry, int64_t time, const float* value, size_t len);
948
949/**
950 * Publish a default value.
951 * On reconnect, a default value will never be used in preference to a
952 * published value.
953 *
954 * @param pubentry publisher or entry handle
955 * @param defaultValue default value
956 * @param defaultValueLen length of default value
957
958 */
959NT_Bool NT_SetDefaultFloatArray(NT_Handle pubentry, const float* defaultValue, size_t defaultValueLen);
960
961/**
962 * Get the last published value.
963 * If no value has been published, returns the passed defaultValue.
964 *
965 * @param subentry subscriber or entry handle
966 * @param defaultValue default value to return if no value has been published
967 * @param defaultValueLen length of default value
968 * @param len length of returned value (output)
969
970 * @return value
971 */
972float* NT_GetFloatArray(NT_Handle subentry, const float* defaultValue, size_t defaultValueLen, size_t* len);
973
974/**
975 * Get the last published value along with its timestamp.
976 * If no value has been published, returns the passed defaultValue and a
977 * timestamp of 0.
978 *
979 * @param subentry subscriber or entry handle
980 * @param defaultValue default value to return if no value has been published
981 * @param defaultValueLen length of default value
982
983 * @param value timestamped value (output)
984 */
985void NT_GetAtomicFloatArray(NT_Handle subentry, const float* defaultValue, size_t defaultValueLen, struct NT_TimestampedFloatArray* value);
986
987/**
988 * Disposes a timestamped value (as returned by NT_GetAtomicFloatArray).
989 *
990 * @param value timestamped value
991 */
993
994/**
995 * Get an array of all value changes since the last call to ReadQueue.
996 * Also provides a timestamp for each value.
997 *
998 * @note The "poll storage" subscribe option can be used to set the queue
999 * depth.
1000 *
1001 * @param subentry subscriber or entry handle
1002 * @param len length of returned array (output)
1003 * @return Array of timestamped values; NULL if no new changes have
1004 * been published since the previous call.
1005 */
1007
1008/**
1009 * Frees a timestamped array of values (as returned by NT_ReadQueueFloatArray).
1010 *
1011 * @param arr array
1012 * @param len length of array
1013 */
1015
1016/** @} */
1017
1018/**
1019 * Timestamped DoubleArray.
1020 * @ingroup ntcore_c_api
1021 */
1023 /**
1024 * Time in local time base.
1025 */
1026 int64_t time;
1027
1028 /**
1029 * Time in server time base. May be 0 or 1 for locally set values.
1030 */
1031 int64_t serverTime;
1032
1033 /**
1034 * Value.
1035 */
1036 double* value;
1037 /**
1038 * Value length.
1039 */
1040 size_t len;
1041
1042};
1043
1044/**
1045 * @defgroup ntcore_DoubleArray_cfunc DoubleArray Functions
1046 * @ingroup ntcore_c_api
1047 * @{
1048 */
1049
1050/**
1051 * Publish a new value.
1052 *
1053 * @param pubentry publisher or entry handle
1054 * @param time timestamp; 0 indicates current NT time should be used
1055 * @param value value to publish
1056 * @param len length of value
1057
1058 */
1059NT_Bool NT_SetDoubleArray(NT_Handle pubentry, int64_t time, const double* value, size_t len);
1060
1061/**
1062 * Publish a default value.
1063 * On reconnect, a default value will never be used in preference to a
1064 * published value.
1065 *
1066 * @param pubentry publisher or entry handle
1067 * @param defaultValue default value
1068 * @param defaultValueLen length of default value
1069
1070 */
1071NT_Bool NT_SetDefaultDoubleArray(NT_Handle pubentry, const double* defaultValue, size_t defaultValueLen);
1072
1073/**
1074 * Get the last published value.
1075 * If no value has been published, returns the passed defaultValue.
1076 *
1077 * @param subentry subscriber or entry handle
1078 * @param defaultValue default value to return if no value has been published
1079 * @param defaultValueLen length of default value
1080 * @param len length of returned value (output)
1081
1082 * @return value
1083 */
1084double* NT_GetDoubleArray(NT_Handle subentry, const double* defaultValue, size_t defaultValueLen, size_t* len);
1085
1086/**
1087 * Get the last published value along with its timestamp.
1088 * If no value has been published, returns the passed defaultValue and a
1089 * timestamp of 0.
1090 *
1091 * @param subentry subscriber or entry handle
1092 * @param defaultValue default value to return if no value has been published
1093 * @param defaultValueLen length of default value
1094
1095 * @param value timestamped value (output)
1096 */
1097void NT_GetAtomicDoubleArray(NT_Handle subentry, const double* defaultValue, size_t defaultValueLen, struct NT_TimestampedDoubleArray* value);
1098
1099/**
1100 * Disposes a timestamped value (as returned by NT_GetAtomicDoubleArray).
1101 *
1102 * @param value timestamped value
1103 */
1105
1106/**
1107 * Get an array of all value changes since the last call to ReadQueue.
1108 * Also provides a timestamp for each value.
1109 *
1110 * @note The "poll storage" subscribe option can be used to set the queue
1111 * depth.
1112 *
1113 * @param subentry subscriber or entry handle
1114 * @param len length of returned array (output)
1115 * @return Array of timestamped values; NULL if no new changes have
1116 * been published since the previous call.
1117 */
1119
1120/**
1121 * Frees a timestamped array of values (as returned by NT_ReadQueueDoubleArray).
1122 *
1123 * @param arr array
1124 * @param len length of array
1125 */
1127
1128/** @} */
1129
1130/**
1131 * Timestamped StringArray.
1132 * @ingroup ntcore_c_api
1133 */
1135 /**
1136 * Time in local time base.
1137 */
1138 int64_t time;
1139
1140 /**
1141 * Time in server time base. May be 0 or 1 for locally set values.
1142 */
1143 int64_t serverTime;
1144
1145 /**
1146 * Value.
1147 */
1149 /**
1150 * Value length.
1151 */
1152 size_t len;
1153
1154};
1155
1156/**
1157 * @defgroup ntcore_StringArray_cfunc StringArray Functions
1158 * @ingroup ntcore_c_api
1159 * @{
1160 */
1161
1162/**
1163 * Publish a new value.
1164 *
1165 * @param pubentry publisher or entry handle
1166 * @param time timestamp; 0 indicates current NT time should be used
1167 * @param value value to publish
1168 * @param len length of value
1169
1170 */
1171NT_Bool NT_SetStringArray(NT_Handle pubentry, int64_t time, const struct NT_String* value, size_t len);
1172
1173/**
1174 * Publish a default value.
1175 * On reconnect, a default value will never be used in preference to a
1176 * published value.
1177 *
1178 * @param pubentry publisher or entry handle
1179 * @param defaultValue default value
1180 * @param defaultValueLen length of default value
1181
1182 */
1183NT_Bool NT_SetDefaultStringArray(NT_Handle pubentry, const struct NT_String* defaultValue, size_t defaultValueLen);
1184
1185/**
1186 * Get the last published value.
1187 * If no value has been published, returns the passed defaultValue.
1188 *
1189 * @param subentry subscriber or entry handle
1190 * @param defaultValue default value to return if no value has been published
1191 * @param defaultValueLen length of default value
1192 * @param len length of returned value (output)
1193
1194 * @return value
1195 */
1196struct NT_String* NT_GetStringArray(NT_Handle subentry, const struct NT_String* defaultValue, size_t defaultValueLen, size_t* len);
1197
1198/**
1199 * Get the last published value along with its timestamp.
1200 * If no value has been published, returns the passed defaultValue and a
1201 * timestamp of 0.
1202 *
1203 * @param subentry subscriber or entry handle
1204 * @param defaultValue default value to return if no value has been published
1205 * @param defaultValueLen length of default value
1206
1207 * @param value timestamped value (output)
1208 */
1209void NT_GetAtomicStringArray(NT_Handle subentry, const struct NT_String* defaultValue, size_t defaultValueLen, struct NT_TimestampedStringArray* value);
1210
1211/**
1212 * Disposes a timestamped value (as returned by NT_GetAtomicStringArray).
1213 *
1214 * @param value timestamped value
1215 */
1217
1218/**
1219 * Get an array of all value changes since the last call to ReadQueue.
1220 * Also provides a timestamp for each value.
1221 *
1222 * @note The "poll storage" subscribe option can be used to set the queue
1223 * depth.
1224 *
1225 * @param subentry subscriber or entry handle
1226 * @param len length of returned array (output)
1227 * @return Array of timestamped values; NULL if no new changes have
1228 * been published since the previous call.
1229 */
1231
1232/**
1233 * Frees a timestamped array of values (as returned by NT_ReadQueueStringArray).
1234 *
1235 * @param arr array
1236 * @param len length of array
1237 */
1239
1240/** @} */
1241
1242
1243#ifdef __cplusplus
1244} // extern "C"
1245#endif
NT_Bool NT_SetDefaultBoolean(NT_Handle pubentry, NT_Bool defaultValue)
Publish a default value.
void NT_GetAtomicBoolean(NT_Handle subentry, NT_Bool defaultValue, struct NT_TimestampedBoolean *value)
Get the last published value along with its timestamp.
void NT_FreeQueueBoolean(struct NT_TimestampedBoolean *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueBoolean).
NT_Bool NT_GetBoolean(NT_Handle subentry, NT_Bool defaultValue)
Get the last published value.
void NT_DisposeTimestampedBoolean(struct NT_TimestampedBoolean *value)
Disposes a timestamped value (as returned by NT_GetAtomicBoolean).
NT_Bool * NT_ReadQueueValuesBoolean(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
struct NT_TimestampedBoolean * NT_ReadQueueBoolean(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetBoolean(NT_Handle pubentry, int64_t time, NT_Bool value)
Publish a new value.
void NT_FreeQueueBooleanArray(struct NT_TimestampedBooleanArray *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueBooleanArray).
void NT_GetAtomicBooleanArray(NT_Handle subentry, const NT_Bool *defaultValue, size_t defaultValueLen, struct NT_TimestampedBooleanArray *value)
Get the last published value along with its timestamp.
NT_Bool * NT_GetBooleanArray(NT_Handle subentry, const NT_Bool *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
NT_Bool NT_SetDefaultBooleanArray(NT_Handle pubentry, const NT_Bool *defaultValue, size_t defaultValueLen)
Publish a default value.
NT_Bool NT_SetBooleanArray(NT_Handle pubentry, int64_t time, const NT_Bool *value, size_t len)
Publish a new value.
void NT_DisposeTimestampedBooleanArray(struct NT_TimestampedBooleanArray *value)
Disposes a timestamped value (as returned by NT_GetAtomicBooleanArray).
struct NT_TimestampedBooleanArray * NT_ReadQueueBooleanArray(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_FreeQueueDouble(struct NT_TimestampedDouble *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueDouble).
void NT_GetAtomicDouble(NT_Handle subentry, double defaultValue, struct NT_TimestampedDouble *value)
Get the last published value along with its timestamp.
struct NT_TimestampedDouble * NT_ReadQueueDouble(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_DisposeTimestampedDouble(struct NT_TimestampedDouble *value)
Disposes a timestamped value (as returned by NT_GetAtomicDouble).
NT_Bool NT_SetDefaultDouble(NT_Handle pubentry, double defaultValue)
Publish a default value.
double NT_GetDouble(NT_Handle subentry, double defaultValue)
Get the last published value.
NT_Bool NT_SetDouble(NT_Handle pubentry, int64_t time, double value)
Publish a new value.
double * NT_ReadQueueValuesDouble(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetDoubleArray(NT_Handle pubentry, int64_t time, const double *value, size_t len)
Publish a new value.
void NT_GetAtomicDoubleArray(NT_Handle subentry, const double *defaultValue, size_t defaultValueLen, struct NT_TimestampedDoubleArray *value)
Get the last published value along with its timestamp.
NT_Bool NT_SetDefaultDoubleArray(NT_Handle pubentry, const double *defaultValue, size_t defaultValueLen)
Publish a default value.
double * NT_GetDoubleArray(NT_Handle subentry, const double *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
void NT_FreeQueueDoubleArray(struct NT_TimestampedDoubleArray *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueDoubleArray).
void NT_DisposeTimestampedDoubleArray(struct NT_TimestampedDoubleArray *value)
Disposes a timestamped value (as returned by NT_GetAtomicDoubleArray).
struct NT_TimestampedDoubleArray * NT_ReadQueueDoubleArray(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_FreeQueueFloat(struct NT_TimestampedFloat *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueFloat).
float NT_GetFloat(NT_Handle subentry, float defaultValue)
Get the last published value.
struct NT_TimestampedFloat * NT_ReadQueueFloat(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_DisposeTimestampedFloat(struct NT_TimestampedFloat *value)
Disposes a timestamped value (as returned by NT_GetAtomicFloat).
void NT_GetAtomicFloat(NT_Handle subentry, float defaultValue, struct NT_TimestampedFloat *value)
Get the last published value along with its timestamp.
NT_Bool NT_SetDefaultFloat(NT_Handle pubentry, float defaultValue)
Publish a default value.
float * NT_ReadQueueValuesFloat(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetFloat(NT_Handle pubentry, int64_t time, float value)
Publish a new value.
void NT_DisposeTimestampedFloatArray(struct NT_TimestampedFloatArray *value)
Disposes a timestamped value (as returned by NT_GetAtomicFloatArray).
NT_Bool NT_SetDefaultFloatArray(NT_Handle pubentry, const float *defaultValue, size_t defaultValueLen)
Publish a default value.
float * NT_GetFloatArray(NT_Handle subentry, const float *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
void NT_GetAtomicFloatArray(NT_Handle subentry, const float *defaultValue, size_t defaultValueLen, struct NT_TimestampedFloatArray *value)
Get the last published value along with its timestamp.
NT_Bool NT_SetFloatArray(NT_Handle pubentry, int64_t time, const float *value, size_t len)
Publish a new value.
struct NT_TimestampedFloatArray * NT_ReadQueueFloatArray(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_FreeQueueFloatArray(struct NT_TimestampedFloatArray *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueFloatArray).
struct NT_TimestampedInteger * NT_ReadQueueInteger(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
int64_t * NT_ReadQueueValuesInteger(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetDefaultInteger(NT_Handle pubentry, int64_t defaultValue)
Publish a default value.
NT_Bool NT_SetInteger(NT_Handle pubentry, int64_t time, int64_t value)
Publish a new value.
void NT_FreeQueueInteger(struct NT_TimestampedInteger *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueInteger).
void NT_DisposeTimestampedInteger(struct NT_TimestampedInteger *value)
Disposes a timestamped value (as returned by NT_GetAtomicInteger).
int64_t NT_GetInteger(NT_Handle subentry, int64_t defaultValue)
Get the last published value.
void NT_GetAtomicInteger(NT_Handle subentry, int64_t defaultValue, struct NT_TimestampedInteger *value)
Get the last published value along with its timestamp.
int64_t * NT_GetIntegerArray(NT_Handle subentry, const int64_t *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
void NT_GetAtomicIntegerArray(NT_Handle subentry, const int64_t *defaultValue, size_t defaultValueLen, struct NT_TimestampedIntegerArray *value)
Get the last published value along with its timestamp.
struct NT_TimestampedIntegerArray * NT_ReadQueueIntegerArray(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetDefaultIntegerArray(NT_Handle pubentry, const int64_t *defaultValue, size_t defaultValueLen)
Publish a default value.
NT_Bool NT_SetIntegerArray(NT_Handle pubentry, int64_t time, const int64_t *value, size_t len)
Publish a new value.
void NT_DisposeTimestampedIntegerArray(struct NT_TimestampedIntegerArray *value)
Disposes a timestamped value (as returned by NT_GetAtomicIntegerArray).
void NT_FreeQueueIntegerArray(struct NT_TimestampedIntegerArray *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueIntegerArray).
NT_Bool NT_SetDefaultRaw(NT_Handle pubentry, const uint8_t *defaultValue, size_t defaultValueLen)
Publish a default value.
void NT_GetAtomicRaw(NT_Handle subentry, const uint8_t *defaultValue, size_t defaultValueLen, struct NT_TimestampedRaw *value)
Get the last published value along with its timestamp.
uint8_t * NT_GetRaw(NT_Handle subentry, const uint8_t *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
struct NT_TimestampedRaw * NT_ReadQueueRaw(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
void NT_FreeQueueRaw(struct NT_TimestampedRaw *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueRaw).
void NT_DisposeTimestampedRaw(struct NT_TimestampedRaw *value)
Disposes a timestamped value (as returned by NT_GetAtomicRaw).
NT_Bool NT_SetRaw(NT_Handle pubentry, int64_t time, const uint8_t *value, size_t len)
Publish a new value.
void NT_DisposeTimestampedString(struct NT_TimestampedString *value)
Disposes a timestamped value (as returned by NT_GetAtomicString).
void NT_GetAtomicString(NT_Handle subentry, const char *defaultValue, size_t defaultValueLen, struct NT_TimestampedString *value)
Get the last published value along with its timestamp.
void NT_FreeQueueString(struct NT_TimestampedString *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueString).
NT_Bool NT_SetString(NT_Handle pubentry, int64_t time, const char *value, size_t len)
Publish a new value.
NT_Bool NT_SetDefaultString(NT_Handle pubentry, const char *defaultValue, size_t defaultValueLen)
Publish a default value.
char * NT_GetString(NT_Handle subentry, const char *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
struct NT_TimestampedString * NT_ReadQueueString(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
struct NT_String * NT_GetStringArray(NT_Handle subentry, const struct NT_String *defaultValue, size_t defaultValueLen, size_t *len)
Get the last published value.
NT_Bool NT_SetStringArray(NT_Handle pubentry, int64_t time, const struct NT_String *value, size_t len)
Publish a new value.
struct NT_TimestampedStringArray * NT_ReadQueueStringArray(NT_Handle subentry, size_t *len)
Get an array of all value changes since the last call to ReadQueue.
NT_Bool NT_SetDefaultStringArray(NT_Handle pubentry, const struct NT_String *defaultValue, size_t defaultValueLen)
Publish a default value.
void NT_GetAtomicStringArray(NT_Handle subentry, const struct NT_String *defaultValue, size_t defaultValueLen, struct NT_TimestampedStringArray *value)
Get the last published value along with its timestamp.
void NT_FreeQueueStringArray(struct NT_TimestampedStringArray *arr, size_t len)
Frees a timestamped array of values (as returned by NT_ReadQueueStringArray).
void NT_DisposeTimestampedStringArray(struct NT_TimestampedStringArray *value)
Disposes a timestamped value (as returned by NT_GetAtomicStringArray).
int NT_Bool
Typedefs.
Definition: ntcore_c.h:30
unsigned int NT_Handle
Definition: ntcore_c.h:32
A NetworkTables string.
Definition: ntcore_c.h:133
size_t len
Length of the string in bytes.
Definition: ntcore_c.h:146
Timestamped BooleanArray.
Definition: ntcore_c_types.h:686
NT_Bool * value
Value.
Definition: ntcore_c_types.h:700
size_t len
Value length.
Definition: ntcore_c_types.h:704
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:690
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:695
Timestamped Boolean.
Definition: ntcore_c_types.h:22
NT_Bool value
Value.
Definition: ntcore_c_types.h:36
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:26
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:31
Timestamped DoubleArray.
Definition: ntcore_c_types.h:1022
double * value
Value.
Definition: ntcore_c_types.h:1036
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:1026
size_t len
Value length.
Definition: ntcore_c_types.h:1040
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:1031
Timestamped Double.
Definition: ntcore_c_types.h:352
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:356
double value
Value.
Definition: ntcore_c_types.h:366
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:361
Timestamped FloatArray.
Definition: ntcore_c_types.h:910
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:919
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:914
size_t len
Value length.
Definition: ntcore_c_types.h:928
float * value
Value.
Definition: ntcore_c_types.h:924
Timestamped Float.
Definition: ntcore_c_types.h:242
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:251
float value
Value.
Definition: ntcore_c_types.h:256
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:246
Timestamped IntegerArray.
Definition: ntcore_c_types.h:798
size_t len
Value length.
Definition: ntcore_c_types.h:816
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:802
int64_t * value
Value.
Definition: ntcore_c_types.h:812
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:807
Timestamped Integer.
Definition: ntcore_c_types.h:132
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:136
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:141
int64_t value
Value.
Definition: ntcore_c_types.h:146
Timestamped Raw.
Definition: ntcore_c_types.h:574
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:583
size_t len
Value length.
Definition: ntcore_c_types.h:592
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:578
uint8_t * value
Value.
Definition: ntcore_c_types.h:588
Timestamped StringArray.
Definition: ntcore_c_types.h:1134
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:1138
struct NT_String * value
Value.
Definition: ntcore_c_types.h:1148
size_t len
Value length.
Definition: ntcore_c_types.h:1152
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:1143
Timestamped String.
Definition: ntcore_c_types.h:462
size_t len
Value length.
Definition: ntcore_c_types.h:480
int64_t serverTime
Time in server time base.
Definition: ntcore_c_types.h:471
char * value
Value.
Definition: ntcore_c_types.h:476
int64_t time
Time in local time base.
Definition: ntcore_c_types.h:466