author | Michael Krelin <hacker@klever.net> | 2009-03-08 20:09:21 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-03-08 20:09:21 (UTC) |
commit | aadaa8b5d7eda23e72dbded9d6437b40358353f3 (patch) (unidiff) | |
tree | 0bff6fdde1e2b9be02b48aaf7d03f095604718e1 /src/eyefi.h | |
download | iii-0.0.zip iii-0.0.tar.gz iii-0.0.tar.bz2 |
Inital commit to public repository0.0
-rw-r--r-- | src/eyefi.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/eyefi.h b/src/eyefi.h new file mode 100644 index 0000000..70e918d --- a/dev/null +++ b/src/eyefi.h | |||
@@ -0,0 +1,47 @@ | |||
1 | //gsoap efs service name: eyefi | ||
2 | //gsoap efs service location: http://api.eye.fi/api/soap/eyefilm/v1 | ||
3 | //gsoap efs service namespace: EyeFi/SOAP/EyeFilm | ||
4 | //gsoap efs service method-action:StartSession "urn:StartSession" | ||
5 | //gsoap efs service method-action:GetPhotoStatus "urn:GetPhotoStatus" | ||
6 | //gsoap efs service method-action:MarkLastPhotoInRoll "urn:MarkLastPhotoInRoll" | ||
7 | //gsoap rns service namespace: http://localhost/api/soap/eyefilm | ||
8 | |||
9 | struct rns__StartSessionResponse { | ||
10 | std::string credential; | ||
11 | std::string snonce; | ||
12 | int transfermode; | ||
13 | unsigned int transfermodetimestamp; | ||
14 | bool upsyncallowed; | ||
15 | }; | ||
16 | |||
17 | int efs__StartSession( | ||
18 | std::string macaddress,std::string cnonce, | ||
19 | int transfermode,long transfermodetimestamp, | ||
20 | struct rns__StartSessionResponse &r ); | ||
21 | |||
22 | struct rns__GetPhotoStatusResponse { | ||
23 | int fileid; | ||
24 | long offset; | ||
25 | }; | ||
26 | |||
27 | int efs__GetPhotoStatus( | ||
28 | std::string credential, std::string macaddress, | ||
29 | std::string filename, long filesize, std::string filesignature, | ||
30 | struct rns__GetPhotoStatusResponse &r ); | ||
31 | |||
32 | struct rns__MarkLastPhotoInRollResponse { | ||
33 | }; | ||
34 | |||
35 | int efs__MarkLastPhotoInRoll( | ||
36 | std::string macaddress, int mergedelta, | ||
37 | struct rns__MarkLastPhotoInRollResponse &r ); | ||
38 | |||
39 | struct rns__UploadPhotoResponse { | ||
40 | bool success; | ||
41 | }; | ||
42 | |||
43 | int efs__UploadPhoto( | ||
44 | int fileid, std::string macaddress, | ||
45 | std::string filename, long filesize, std::string filesignature, | ||
46 | std::string encryption, int flags, | ||
47 | struct rns__UploadPhotoResponse& r ); | ||