From 7c6374b4b5d452ab239f8b725038f2a2eb82368f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 3 Jan 2013 21:00:58 +0100 Subject: split api into more components --- module/remote/pyload.thrift | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'module/remote') diff --git a/module/remote/pyload.thrift b/module/remote/pyload.thrift index af4b81cd6..514c3215c 100644 --- a/module/remote/pyload.thrift +++ b/module/remote/pyload.thrift @@ -329,7 +329,7 @@ exception Forbidden { service Pyload { /////////////////////// - // Server Status + // Core Status /////////////////////// string getServerVersion(), @@ -379,7 +379,7 @@ service Pyload { map generatePackages(1: LinkList links), /////////////////////// - // Adding/Deleting + // Download /////////////////////// list generateAndAddPackages(1: LinkList links, 2: bool paused), @@ -403,6 +403,15 @@ service Pyload { void deleteFiles(1: list fids), void deletePackages(1: list pids), // delete the whole folder recursive + // Modify Downloads + + void restartPackage(1: PackageID pid), + void restartFile(1: FileID fid), + void recheckPackage(1: PackageID pid), + void restartFailed(), + void stopDownloads(1: list fids), + void stopAllDownloads(), + /////////////////////// // Collector /////////////////////// @@ -435,20 +444,7 @@ service Pyload { TreeCollection findFiles(1: string pattern), TreeCollection findPackages(1: list tags), - /////////////////////// - // Modify Downloads - /////////////////////// - - void restartPackage(1: PackageID pid), - void restartFile(1: FileID fid), - void recheckPackage(1: PackageID pid), - void restartFailed(), - void stopDownloads(1: list fids), - void stopAllDownloads(), - - ///////////////////////// // Modify Files/Packages - ///////////////////////// // moving package while downloading is not possible, so they will return bool to indicate success void updatePackage(1: PackageInfo pack) throws (1: PackageDoesNotExists e), -- cgit v1.2.3