author | Michael Krelin <hacker@klever.net> | 2013-02-12 20:37:10 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-02-12 20:37:10 (UTC) |
commit | 13fb4abba3fd3cac0d5cb25d3eccddc298220d41 (patch) (unidiff) | |
tree | 8a086ffef06f153e739674a5c8beab1db9388238 /src/eyefiworker.h | |
parent | b80844f51353339cfbb8b35a5585911cdb4301e2 (diff) | |
download | iii-13fb4abba3fd3cac0d5cb25d3eccddc298220d41.zip iii-13fb4abba3fd3cac0d5cb25d3eccddc298220d41.tar.gz iii-13fb4abba3fd3cac0d5cb25d3eccddc298220d41.tar.bz2 |
introduce throwable_exit for nicer stack unwinding
yes, I enjoy abusing features
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | src/eyefiworker.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eyefiworker.h b/src/eyefiworker.h index 6d4082c..6cdecff 100644 --- a/src/eyefiworker.h +++ b/src/eyefiworker.h | |||
@@ -1,29 +1,30 @@ | |||
1 | #ifndef __EYEFIWORKER_H | 1 | #ifndef __EYEFIWORKER_H |
2 | #define __EYEFIWORKER_H | 2 | #define __EYEFIWORKER_H |
3 | 3 | ||
4 | #include "soapeyefiService.h" | 4 | #include "soapeyefiService.h" |
5 | 5 | ||
6 | class eyefiworker : public eyefiService { | 6 | class eyefiworker : public eyefiService { |
7 | public: | 7 | public: |
8 | 8 | ||
9 | eyefiworker(); | 9 | eyefiworker(); |
10 | ~eyefiworker(); | ||
10 | 11 | ||
11 | int run(int port) __attribute__ ((noreturn)); | 12 | int run(int port) __attribute__ ((noreturn)); |
12 | 13 | ||
13 | int StartSession(std::string macaddress, std::string cnonce, | 14 | int StartSession(std::string macaddress, std::string cnonce, |
14 | int transfermode, long transfermodetimestamp, | 15 | int transfermode, long transfermodetimestamp, |
15 | struct rns__StartSessionResponse &r); | 16 | struct rns__StartSessionResponse &r); |
16 | int GetPhotoStatus(std::string credential, std::string macaddress, | 17 | int GetPhotoStatus(std::string credential, std::string macaddress, |
17 | std::string filename, long filesize, std::string filesignature, int flags, | 18 | std::string filename, long filesize, std::string filesignature, int flags, |
18 | struct rns__GetPhotoStatusResponse &r); | 19 | struct rns__GetPhotoStatusResponse &r); |
19 | int MarkLastPhotoInRoll(std::string macaddress, int mergedelta, | 20 | int MarkLastPhotoInRoll(std::string macaddress, int mergedelta, |
20 | struct rns__MarkLastPhotoInRollResponse &r); | 21 | struct rns__MarkLastPhotoInRollResponse &r); |
21 | int UploadPhoto(int fileid, std::string macaddress, | 22 | int UploadPhoto(int fileid, std::string macaddress, |
22 | std::string filename, long filesize, std::string filesignature, | 23 | std::string filename, long filesize, std::string filesignature, |
23 | std::string encryption, int flags, | 24 | std::string encryption, int flags, |
24 | struct rns__UploadPhotoResponse &r); | 25 | struct rns__UploadPhotoResponse &r); |
25 | 26 | ||
26 | eyefiService *copy() { throw std::logic_error("Not meant to be called"); } | 27 | eyefiService *copy() { throw std::logic_error("Not meant to be called"); } |
27 | }; | 28 | }; |
28 | 29 | ||
29 | #endif /* __EYEFIWORKER_H */ | 30 | #endif /* __EYEFIWORKER_H */ |