author | Michael Krelin <hacker@klever.net> | 2013-02-12 18:47:34 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-02-12 18:47:34 (UTC) |
commit | b80844f51353339cfbb8b35a5585911cdb4301e2 (patch) (unidiff) | |
tree | a314f93bd5192c9d68b5ad9ea3ff9a8f70b2259b /src/eyefiworker.h | |
parent | b1f275528c0a5502d9739948f131a0993f90cfbc (diff) | |
download | iii-b80844f51353339cfbb8b35a5585911cdb4301e2.zip iii-b80844f51353339cfbb8b35a5585911cdb4301e2.tar.gz iii-b80844f51353339cfbb8b35a5585911cdb4301e2.tar.bz2 |
moved everything into worker class.
-rw-r--r-- | src/eyefiworker.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/eyefiworker.h b/src/eyefiworker.h index afb97c7..6d4082c 100644 --- a/src/eyefiworker.h +++ b/src/eyefiworker.h | |||
@@ -7,9 +7,23 @@ class eyefiworker : public eyefiService { | |||
7 | public: | 7 | public: |
8 | 8 | ||
9 | eyefiworker(); | 9 | eyefiworker(); |
10 | 10 | ||
11 | int run(int port) __attribute__ ((noreturn)); | 11 | int run(int port) __attribute__ ((noreturn)); |
12 | 12 | ||
13 | int StartSession(std::string macaddress, std::string cnonce, | ||
14 | int transfermode, long transfermodetimestamp, | ||
15 | struct rns__StartSessionResponse &r); | ||
16 | int GetPhotoStatus(std::string credential, std::string macaddress, | ||
17 | std::string filename, long filesize, std::string filesignature, int flags, | ||
18 | struct rns__GetPhotoStatusResponse &r); | ||
19 | int MarkLastPhotoInRoll(std::string macaddress, int mergedelta, | ||
20 | struct rns__MarkLastPhotoInRollResponse &r); | ||
21 | int UploadPhoto(int fileid, std::string macaddress, | ||
22 | std::string filename, long filesize, std::string filesignature, | ||
23 | std::string encryption, int flags, | ||
24 | struct rns__UploadPhotoResponse &r); | ||
25 | |||
26 | eyefiService *copy() { throw std::logic_error("Not meant to be called"); } | ||
13 | }; | 27 | }; |
14 | 28 | ||
15 | #endif /* __EYEFIWORKER_H */ | 29 | #endif /* __EYEFIWORKER_H */ |