summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-21 00:05:54 +0300
committeraunsane <aunsane@gmail.com>2018-02-21 00:05:54 +0300
commitb1b10b4095c4e569cfeed632c2cfa08be766a01b (patch)
tree490d3f14e2a113257035393aecda6dda01e25ecc /plugins/ExternalAPI
parentabf1919b649645aa20ce95903d7a42a1c81a2e45 (diff)
Implement service that returns the list of available CloudFile services (#1144)
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_cloudfile.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_cloudfile.h b/plugins/ExternalAPI/m_cloudfile.h
new file mode 100644
index 0000000000..8824227e3a
--- /dev/null
+++ b/plugins/ExternalAPI/m_cloudfile.h
@@ -0,0 +1,27 @@
+#ifndef M_CLOUDFILE_H_
+#define M_CLOUDFILE_H_
+
+#define MIID_DROPBOX {0x9649d8e2, 0x7326, 0x4ec1, {0xb4, 0xa3, 0xf2, 0xec, 0x1a, 0x39, 0x84, 0x94}}
+
+struct CFSERVICEINFO
+{
+ const char *AccountName;
+ const wchar_t *UserName;
+};
+
+// get cloud file service info by account name
+// wParam = (WPARAM)(const char*)accountName
+// lParam = (LPARAM)(CFSERVICEINFO*)serviceInfo
+// returns 0 on success, nonzero on failure
+#define MS_CLOUDFILE_GETSERVICE "CloudFile/GetService"
+
+// return nonzero to stop enum
+typedef int(*enumCFServiceFunc)(const CFSERVICEINFO *serviceInfo, void *param);
+
+// get list of cloud file services
+// wParam = (WPARAM)(void*)param
+// lParam = (LPARAM)(enumCFServiceFunc)enumFunc
+// returns 0 on success, nonzero on failure
+#define MS_CLOUDFILE_ENUMSERVICES "CloudFile/EnumServices"
+
+#endif //M_CLOUDFILE_H_ \ No newline at end of file