mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Changes remote_name to remote_ip (#87)
Was confusing, as remote_name seemed like a name but wasn't. Also changes remote_ip in the C api to use an NT_String
This commit is contained in:
committed by
Peter Johnson
parent
0f9f7309e3
commit
bc99d341fb
@@ -120,7 +120,7 @@ struct NT_EntryInfo {
|
||||
/** NetworkTables Connection Information */
|
||||
struct NT_ConnectionInfo {
|
||||
struct NT_String remote_id;
|
||||
char *remote_name;
|
||||
struct NT_String remote_ip;
|
||||
unsigned int remote_port;
|
||||
unsigned long long last_update;
|
||||
unsigned int protocol_version;
|
||||
@@ -185,7 +185,7 @@ void NT_GetEntryValue(const char *name, size_t name_len,
|
||||
* @param default_value value to be set if name does not exist
|
||||
* @return 0 on error (value not set), 1 on success
|
||||
*/
|
||||
int NT_SetDefaultEntryValue(const char* name, size_t name_len,
|
||||
int NT_SetDefaultEntryValue(const char *name, size_t name_len,
|
||||
const struct NT_Value *default_value);
|
||||
|
||||
/** Set Entry Value.
|
||||
|
||||
@@ -42,7 +42,7 @@ struct EntryInfo {
|
||||
/** NetworkTables Connection Information */
|
||||
struct ConnectionInfo {
|
||||
std::string remote_id;
|
||||
std::string remote_name;
|
||||
std::string remote_ip;
|
||||
unsigned int remote_port;
|
||||
unsigned long long last_update;
|
||||
unsigned int protocol_version;
|
||||
|
||||
Reference in New Issue
Block a user