Rename Location to Waypoint.

This commit is contained in:
Sacha Weatherstone 2022-08-20 09:09:31 +09:30
parent 2fadf011e5
commit e439934e6d
3 changed files with 10 additions and 14 deletions

View file

@ -46,5 +46,5 @@
#This value may want to be a few bytes smaller to compensate for the parent fields.
*Compressed.data max_size:237
*Location.name max_size:30
*Location.description max_size:100
*Waypoint.name max_size:30
*Waypoint.description max_size:100

View file

@ -589,20 +589,15 @@ message Data {
*/
fixed32 emoji = 8;
/*
* Location structure
*/
Location location = 9;
}
/*
* Location of a waypoint to associate with a message
* Waypoint message, used to share arbitrary locations across the mesh
*/
message Location {
message Waypoint {
/*
* Id of the location
* Id of the waypoint
*/
uint32 id = 1;
@ -617,22 +612,22 @@ message Location {
sfixed32 longitude_i = 3;
/*
* Time the location is to expire (epoch)
* Time the waypoint is to expire (epoch)
*/
uint32 expire = 4;
/*
* If true, only allow the original sender to update the location.
* If true, only allow the original sender to update the waypoint.
*/
bool locked = 5;
/*
* Name of the location - max 30 chars
* Name of the waypoint - max 30 chars
*/
string name = 6;
/**
* Description of the location - max 100 chars
* Description of the waypoint - max 100 chars
*/
string description = 7;

View file

@ -83,6 +83,7 @@ enum PortNum {
/*
* Waypoint payloads.
* Payload is a [Waypoint](/docs/developers/protobufs/api#waypoint) message
*/
WAYPOINT_APP = 8;