summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/pyload.thrift
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-14 14:26:29 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-14 14:26:29 +0100
commite811e55a8e8e451c6fc7b723f26a6351f997a14e (patch)
tree026b350bd54b40aa73ec115ff9b83800351e1a8d /module/remote/thriftbackend/pyload.thrift
parentlittle SO fix (diff)
downloadpyload-e811e55a8e8e451c6fc7b723f26a6351f997a14e.tar.xz
some parts of cli working again
Diffstat (limited to 'module/remote/thriftbackend/pyload.thrift')
-rw-r--r--module/remote/thriftbackend/pyload.thrift13
1 files changed, 11 insertions, 2 deletions
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index 3cbd62d7a..a8c295339 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -151,6 +151,15 @@ struct AccountData {
4: optional map<string, string> options
}
+exception PackageDoesNotExists{
+ 1: PackageID pid
+}
+
+exception FileDoesNotExists{
+ 1: FileID fid
+}
+
+
service Pyload {
//general
string getConfigValue(1: string category, 2: string option, 3: string section),
@@ -173,8 +182,8 @@ service Pyload {
//downloads
list<DownloadInfo> statusDownloads(),
PackageID addPackage(1: string name, 2: LinkList links, 3: Destination dest),
- PackageData getPackageData(1: PackageID pid),
- FileData getFileData(1: FileID fid),
+ PackageData getPackageData(1: PackageID pid) throws (1: PackageDoesNotExists e),
+ FileData getFileData(1: FileID fid) throws (1: FileDoesNotExists e),
void deleteFiles(1: list<FileID> fids),
void deletePackages(1: list<PackageID> pids),
list<PackageInfo> getQueue(),