diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-06-03 13:27:13 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2008-06-03 13:27:13 +0000 |
commit | 964a7089f8a243fed81b9fc293512c7e2be6ce18 (patch) | |
tree | 4c81ec9feacd624190965318061c8fdaab8ae08a /sametime/files.h | |
parent | 60cbe2d6c7d0a0b9dafce40d9d9ecdc868c4c49b (diff) |
import sametime plugin source
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@412 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'sametime/files.h')
-rw-r--r-- | sametime/files.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sametime/files.h b/sametime/files.h new file mode 100644 index 0000000..f240c7f --- /dev/null +++ b/sametime/files.h @@ -0,0 +1,37 @@ +#ifndef _FILES_INC
+#define _FILES_INC
+
+#include "common.h"
+#include "userlist.h"
+#include "options.h"
+
+#define FILE_BUFF_SIZE (1024 * 32)
+
+typedef struct FileTransferClientData_tag {
+ char *save_path;
+ HANDLE hFile;
+ bool sending;
+ HANDLE hContact;
+ struct FileTransferClientData_tag *next, *first;
+ HANDLE hFt;
+ char *buffer;
+
+ int ft_number;
+
+ int ft_count; // number of nodes in list - only valid in first node
+ int totalSize; // total for all files in the list - only valid in first node
+
+ int sizeToHere; // in a link list of file transfers, the sum of the filesizes of all prior nodes in the list
+ mwFileTransfer *ft;
+} FileTransferClientData;
+
+HANDLE SendFilesToUser(HANDLE hContact, char **files, char *pszDesc);
+
+HANDLE AcceptFileTransfer(HANDLE hContact, HANDLE hFt, char *save_path);
+void RejectFileTransfer(HANDLE hFt);
+void CancelFileTransfer(HANDLE hFt);
+
+void InitFiles(mwSession *session);
+void DeinitFiles(mwSession *session);
+
+#endif
|