diff --git a/rsctrl/src/definition/files.proto b/rsctrl/src/definition/files.proto index 5546c2efc..3a9a34910 100644 --- a/rsctrl/src/definition/files.proto +++ b/rsctrl/src/definition/files.proto @@ -13,11 +13,13 @@ import "core.proto"; enum RequestMsgIds { MsgId_RequestTransferList = 1; MsgId_RequestControlDownload = 2; + MsgId_RequestShareDirList = 3; } enum ResponseMsgIds { MsgId_ResponseTransferList = 1; MsgId_ResponseControlDownload = 2; + MsgId_ResponseShareDirList = 3; } /////////////////////////////////////////////////////////////// @@ -86,22 +88,32 @@ message ResponseControlDownload { /////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////// // SHARED FILES -// THIS STUFF IS NOT FINISHED YET! -// -//// REQUEST: RequestListShares -//message RequestListShares { -// -// required uint32 depth = 1; // HOW Many Directories to drill down. -// repeated string ShareLocation = 2; -//} -// -//message ShareLocation { -// required string ssl_id = 1; -// required string path = 2; -//} -// -// -// + +// REQUEST: RequestShareDirList +message RequestShareDirList { + required string ssl_id = 1; + required string path = 2; +} + + +// RESPONSE: ResponseShareDirList +message ResponseShareDirList { + required rsctrl.core.Status status = 1; + + enum ListType { + DIRQUERY_ROOT = 1; // the query refers to root. + DIRQUERY_PERSON = 2; // the query refers to person + DIRQUERY_FILE = 3; // the query refers to a file. + DIRQUERY_DIR = 4; // move to top of queue. + } + + required string ssl_id = 2; + required string path = 3; + required ListType list_type = 4; + repeated rsctrl.core.File files = 5; +} + + //// REQUEST: RequestChangeShares // //// REQUEST: RequestLiCloseSearch diff --git a/rsctrl/src/definition/peers.proto b/rsctrl/src/definition/peers.proto index 4ee240b10..5cc38be27 100644 --- a/rsctrl/src/definition/peers.proto +++ b/rsctrl/src/definition/peers.proto @@ -89,6 +89,7 @@ message RequestExaminePeer { /////////////////////////////////////////////////////////////// // REQUEST: RequestModifyPeer +// THIS IS INCOMPLETE... DON'T USE. message RequestModifyPeer { enum ModCmd { diff --git a/rsctrl/src/definition/stream.proto b/rsctrl/src/definition/stream.proto index 085fa3b29..9fcbf8636 100644 --- a/rsctrl/src/definition/stream.proto +++ b/rsctrl/src/definition/stream.proto @@ -18,8 +18,8 @@ enum RequestMsgIds { } enum ResponseMsgIds { - MsgId_ResponseStreamDetail = 1; // RESPONSE to - MsgId_StreamData = 2; + MsgId_ResponseStreamDetail = 1; // RESPONSE to List and Control. + MsgId_ResponseStreamData = 101; } /////////////////////////////////////////////////////////////// @@ -38,7 +38,7 @@ enum StreamState { STREAM_STATE_ERROR = 0; STREAM_STATE_RUN = 1; STREAM_STATE_PAUSED = 2; - STREAM_TYPE_FINISHED = 3; + STREAM_STATE_FINISHED = 3; } message StreamFileDetail { @@ -52,7 +52,7 @@ message StreamFileDetail { message StreamVoipDetail { // THIS NEEDS MORE DEFINITION. - required string peerId = 1; + required string peer_id = 1; required uint64 duration = 2; required uint64 offset = 3; @@ -64,7 +64,7 @@ message StreamDesc { required uint32 stream_id = 1; required StreamType stream_type = 2; required StreamState stream_state = 3; - required float rate_kBs = 4; + required float rate_kbs = 4; optional StreamFileDetail file = 5; optional StreamVoipDetail voip = 6; @@ -90,11 +90,11 @@ message StreamData { message RequestStartFileStream { required rsctrl.core.File file = 1; - required float rate_kBs = 2; + required float rate_kbs = 2; // byte range. allows to restart transfer! - optional uint64 startByte = 3; - optional uint64 endByte = 4; + optional uint64 start_byte = 3; + optional uint64 end_byte = 4; } @@ -123,8 +123,8 @@ message RequestControlStream { required uint32 stream_id = 1; required StreamAction action = 2; - optional float rate_kBs = 3; - optional int64 seek_byte = 4; + optional float rate_kbs = 3; + optional uint64 seek_byte = 4; } /////////////////////////////////////////////////////////////// diff --git a/rsctrl/src/definition/system.proto b/rsctrl/src/definition/system.proto index b4cb3517d..d979b2696 100644 --- a/rsctrl/src/definition/system.proto +++ b/rsctrl/src/definition/system.proto @@ -10,12 +10,14 @@ enum RequestMsgIds { MsgId_RequestSystemStatus = 1; MsgId_RequestSystemQuit = 2; MsgId_RequestSystemExternalAccess = 3; + MsgId_RequestSystemAccount = 4; } enum ResponseMsgIds { MsgId_ResponseSystemStatus = 1; MsgId_ResponseSystemQuit = 2; MsgId_ResponseSystemExternalAccess = 3; + MsgId_ResponseSystemAccount = 4; } /////////////////////////////////////////////////////////////// @@ -93,6 +95,26 @@ message ResponseSystemExternalAccess { required string dht_key = 3; } + +/////////////////////////////////////////////////////////////// + +// REQUEST: RequestSystemAccount +message RequestSystemAccount { + // Nothing here? +} + +// RESPONSE: ResponseSystemAccount +message ResponseSystemAccount { + + // Status of response. + required rsctrl.core.Status status = 1; + + required string pgp_name = 2; + required string location = 3; + required string pgp_id = 4; + required string ssl_id = 5; +} + /////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////