WPILibC++ 2024.3.2
|
Functions | |
NT_Entry | NT_GetEntry (NT_Inst inst, const char *name, size_t name_len) |
Get Entry Handle. More... | |
char * | NT_GetEntryName (NT_Entry entry, size_t *name_len) |
Gets the name of the specified entry. More... | |
enum NT_Type | NT_GetEntryType (NT_Entry entry) |
Gets the type for the specified key, or unassigned if non existent. More... | |
uint64_t | NT_GetEntryLastChange (NT_Entry entry) |
Gets the last time the entry was changed. More... | |
void | NT_GetEntryValue (NT_Entry entry, struct NT_Value *value) |
Get Entry Value. More... | |
void | NT_GetEntryValueType (NT_Entry entry, unsigned int types, struct NT_Value *value) |
Get Entry Value. More... | |
NT_Bool | NT_SetDefaultEntryValue (NT_Entry entry, const struct NT_Value *default_value) |
Set Default Entry Value. More... | |
NT_Bool | NT_SetEntryValue (NT_Entry entry, const struct NT_Value *value) |
Set Entry Value. More... | |
void | NT_SetEntryFlags (NT_Entry entry, unsigned int flags) |
Set Entry Flags. More... | |
unsigned int | NT_GetEntryFlags (NT_Entry entry) |
Get Entry Flags. More... | |
struct NT_Value * | NT_ReadQueueValue (NT_Handle subentry, size_t *count) |
Read Entry Queue. More... | |
struct NT_Value * | NT_ReadQueueValueType (NT_Handle subentry, unsigned int types, size_t *count) |
Read Entry Queue. More... | |
Get Entry Handle.
inst | instance handle |
name | entry name (UTF-8 string) |
name_len | length of name in bytes |
unsigned int NT_GetEntryFlags | ( | NT_Entry | entry | ) |
Get Entry Flags.
entry | entry handle |
uint64_t NT_GetEntryLastChange | ( | NT_Entry | entry | ) |
Gets the last time the entry was changed.
Returns 0 if the handle is invalid.
entry | entry handle |
char * NT_GetEntryName | ( | NT_Entry | entry, |
size_t * | name_len | ||
) |
Gets the name of the specified entry.
Returns an empty string if the handle is invalid.
entry | entry handle |
name_len | length of the returned string (output parameter) |
Gets the type for the specified key, or unassigned if non existent.
entry | entry handle |
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
entry | entry handle |
value | storage for returned entry value |
It is the caller's responsibility to free value once it's no longer needed (the utility function NT_DisposeValue() is useful for this purpose).
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
entry | entry handle |
types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
value | storage for returned entry value |
It is the caller's responsibility to free value once it's no longer needed (the utility function NT_DisposeValue() is useful for this purpose).
Read Entry Queue.
Returns new entry values since last call. The returned array must be freed using NT_DisposeValueArray().
subentry | subscriber or entry handle |
count | count of items in returned array (output) |
Read Entry Queue.
Returns new entry values since last call. The returned array must be freed using NT_DisposeValueArray().
subentry | subscriber or entry handle |
types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
count | count of items in returned array (output) |
Set Default Entry Value.
Returns copy of current entry value if it exists. Otherwise, sets passed in value, and returns set value. Note that one of the type options is "unassigned".
entry | entry handle |
default_value | value to be set if name does not exist |
void NT_SetEntryFlags | ( | NT_Entry | entry, |
unsigned int | flags | ||
) |
Set Entry Flags.
entry | entry handle |
flags | flags value (bitmask of NT_EntryFlags) |
Set Entry Value.
Sets new entry value. If type of new value differs from the type of the currently stored entry, returns error and does not update value.
entry | entry handle |
value | new entry value |