From 5c1fb051fcbc7842bb4f6e879684cda9d7a14cdb Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 18 Jul 2011 00:06:18 +0200 Subject: closed #364, changes to online check api --- module/remote/thriftbackend/pyload.thrift | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'module/remote/thriftbackend/pyload.thrift') 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 data, //url to result +} + + // exceptions exception PackageDoesNotExists{ @@ -213,9 +220,10 @@ service Pyload { map 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> pollResults(1: ResultID rid), + OnlineCheck checkOnlineStatus(1: LinkList urls), + + // poll results from previosly started online check + OnlineCheck pollResults(1: ResultID rid), // downloads - information list statusDownloads(), -- cgit v1.2.3