summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/pyload.thrift
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 00:06:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 00:06:18 +0200
commit5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb (patch)
tree44fccf0954de54947397bfac76633d9f0e6c48a6 /module/remote/thriftbackend/pyload.thrift
parentimprovements, command line link checker (diff)
downloadpyload-5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb.tar.xz
closed #364, changes to online check api
Diffstat (limited to 'module/remote/thriftbackend/pyload.thrift')
-rw-r--r--module/remote/thriftbackend/pyload.thrift18
1 files changed, 13 insertions, 5 deletions
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index 2995ce207..d73021725 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -160,10 +160,17 @@ struct ServiceCall {
struct OnlineStatus {
1: string name,
2: PluginName plugin,
- 3: DownloadStatus status,
- 4: i64 size, // size <= 0 : unknown
+ 3: string packagename,
+ 4: DownloadStatus status,
+ 5: i64 size, // size <= 0 : unknown
}
+struct OnlineCheck {
+ 1: ResultID rid, // -1 -> nothing more to get
+ 2: map<string, OnlineStatus> data, //url to result
+}
+
+
// exceptions
exception PackageDoesNotExists{
@@ -213,9 +220,10 @@ service Pyload {
map<PluginName, LinkList> parseURLs(1: string html),
// parses results and generates packages
- ResultID checkOnlineStatus(1: LinkList urls),
- // poll results from previosly started online check , packagename - url - status
- map<string, map<string, OnlineStatus>> pollResults(1: ResultID rid),
+ OnlineCheck checkOnlineStatus(1: LinkList urls),
+
+ // poll results from previosly started online check
+ OnlineCheck pollResults(1: ResultID rid),
// downloads - information
list<DownloadInfo> statusDownloads(),