mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-31 14:49:14 -04:00 
			
		
		
		
	Updates to some of the protobuf files.
Added System.proto for basic info. - added relationship field to core.person. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5468 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
		
							parent
							
								
									1d35dc2915
								
							
						
					
					
						commit
						51fc0c59fe
					
				
					 5 changed files with 46 additions and 22 deletions
				
			
		|  | @ -27,31 +27,58 @@ enum PackageId { | |||
| 
 | ||||
| message Status { | ||||
|   enum StatusCode { | ||||
|     FAILED        = 0; | ||||
|     INVALID_QUERY = 1; | ||||
|     SUCCESS       = 2; | ||||
|     READMSG       = 3; | ||||
|     FAILED        	= 0; | ||||
|     NO_IMPL_YET		= 1; | ||||
|     INVALID_QUERY 	= 2; | ||||
|     SUCCESS       	= 3; | ||||
|     READMSG       	= 4; | ||||
|   } | ||||
|   required StatusCode code = 1; | ||||
|   optional string msg = 2; | ||||
| } | ||||
| 
 | ||||
| /////////////////////////////////////////////////////////////// | ||||
| 
 | ||||
| message IpAddr { | ||||
|   required string addr = 1 [default = ""]; | ||||
|   required uint32 port = 2 [default = 0];  // must be 16 bit, 0 for unknown. | ||||
| } | ||||
| 
 | ||||
| /////////////////////////////////////////////////////////////// | ||||
| /////////////////////////////////////////////////////////////// | ||||
| // Peer structures, mainly rsctrl.peers related. | ||||
| 
 | ||||
| message Location { | ||||
| 
 | ||||
|   enum StateFlags {	// ORd together... | ||||
|     ONLINE 		= 1; | ||||
|     CONNECTED		= 2; | ||||
|     UNREACHABLE		= 4; | ||||
|   } | ||||
| 
 | ||||
|   required string ssl_id = 1; | ||||
|   required string location = 2; | ||||
| 
 | ||||
|   required string localaddr = 3; | ||||
|   required string extaddr   = 4; | ||||
|   required IpAddr localaddr = 3; | ||||
|   required IpAddr extaddr   = 4; | ||||
| 
 | ||||
|   required uint32 state = 5;  // Not an ENUM as ORd together. | ||||
| } | ||||
| 
 | ||||
| message Person { | ||||
| 
 | ||||
|   enum Relationship {	 | ||||
|     FRIEND 			= 1; | ||||
|     FRIEND_OF_MANY_FRIENDS 	= 2;  // 3+ at the moment. | ||||
|     FRIEND_OF_FRIENDS		= 3;  // 1 or 2. | ||||
|     UNKNOWN			= 4; | ||||
|   } | ||||
| 
 | ||||
|   required string gpg_id = 1; | ||||
|   required string name = 2; | ||||
|   required Relationship relation = 3; | ||||
| 
 | ||||
|   repeated Location locations = 3; | ||||
|   repeated Location locations = 4; | ||||
| } | ||||
| 
 | ||||
| /////////////////////////////////////////////////////////////// | ||||
|  | @ -115,5 +142,3 @@ message BandwidthSet { | |||
| /////////////////////////////////////////////////////////////// | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -73,7 +73,7 @@ message SearchHit { | |||
|   } | ||||
| 
 | ||||
|   required rsctrl.core.File file 	= 1; | ||||
|   required int no_hits 			= 2 | ||||
|   required uint32 no_hits 		= 2; | ||||
|   required LocFlag loc 			= 3; | ||||
| 
 | ||||
| } | ||||
|  | @ -93,7 +93,7 @@ message SearchSet { | |||
|   optional RequestBasicSearch basic_req		= 3; | ||||
|   optional RequestAdvSearch   adv_req		= 4; | ||||
| 
 | ||||
|   repeated SearchHit				= 5; | ||||
|   repeated SearchHit	      hits		= 5; | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
|  | @ -128,7 +128,7 @@ message RequestCloseSearch { | |||
| // REQUEST: RequestListShares | ||||
| message RequestListShares { | ||||
| 
 | ||||
|   required int depth = 1;		// HOW Many Directories to drill down. | ||||
|   required uint32 depth = 1;		// HOW Many Directories to drill down. | ||||
|   repeated string ShareLocation = 2; | ||||
| } | ||||
| 
 | ||||
|  | @ -137,8 +137,6 @@ message ShareLocation { | |||
|   required string path = 2; | ||||
| } | ||||
| 
 | ||||
| message  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // REQUEST: RequestChangeShares | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ message RequestPeers { | |||
|   enum SetOption { | ||||
|     OWNID   = 1; | ||||
|     LISTED  = 2;  | ||||
|     ONLINE  = 3;  | ||||
|     CONNECTED = 3; | ||||
|     FRIENDS = 4; | ||||
|     VALID   = 5; 	 | ||||
|     SIGNED  = 6; 	 | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| package rsctrl.peers; | ||||
| package rsctrl.system; | ||||
| 
 | ||||
| import "core.proto"; | ||||
| 
 | ||||
|  | @ -42,8 +42,8 @@ message ResponseSystemStatus { | |||
|   required rsctrl.core.Status status = 1; | ||||
| 
 | ||||
|   // Peers. | ||||
|   required uint32 peer_count = 2; | ||||
|   required uint32 online_count = 3; | ||||
|   required uint32 no_peers 		= 2; | ||||
|   required uint32 no_connected 		= 3; | ||||
| 
 | ||||
|   // Basic Network Information. | ||||
|   required NetCode net_status = 4; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 drbob
						drbob