00001 /* 00002 * Copyright (c) 2005 Novell, Inc. 00003 * All Rights Reserved. 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of version 2 of the GNU General Public License as 00007 * published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, contact Novell, Inc. 00016 * 00017 * To contact Novell about this file by physical or electronic mail, 00018 * you may find current contact information at www.novell.com 00019 * 00020 * Author : Rohit Kumar 00021 * Email ID : rokumar@novell.com 00022 * Date : 14th July 2005 00023 */ 00024 00025 00026 #ifndef FILE_TRANSFER_MSG_H 00027 #define FILE_TRANSFER_MSG_H 00028 00029 typedef struct _FileTransferMsg { 00030 char* data; 00031 unsigned int length; 00032 } FileTransferMsg; 00033 00034 FileTransferMsg GetFileListResponseMsg(char* path, char flag); 00035 00036 FileTransferMsg GetFileDownloadResponseMsg(char* path); 00037 FileTransferMsg GetFileDownloadLengthErrResponseMsg(); 00038 FileTransferMsg GetFileDownLoadErrMsg(); 00039 FileTransferMsg GetFileDownloadResponseMsgInBlocks(rfbClientPtr cl, rfbTightClientPtr data); 00040 FileTransferMsg ChkFileDownloadErr(rfbClientPtr cl, rfbTightClientPtr data); 00041 00042 FileTransferMsg GetFileUploadLengthErrResponseMsg(); 00043 FileTransferMsg GetFileUploadCompressedLevelErrMsg(); 00044 FileTransferMsg ChkFileUploadErr(rfbClientPtr cl, rfbTightClientPtr data); 00045 FileTransferMsg ChkFileUploadWriteErr(rfbClientPtr cl, rfbTightClientPtr data, char* pBuf); 00046 00047 void CreateDirectory(char* dirName); 00048 void FileUpdateComplete(rfbClientPtr cl, rfbTightClientPtr data); 00049 void CloseUndoneFileTransfer(rfbClientPtr cl, rfbTightClientPtr data); 00050 00051 void FreeFileTransferMsg(FileTransferMsg ftm); 00052 00053 #endif 00054
1.7.1