Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/filesys.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8894 - (hide annotations) (download) (as text)
Tue Aug 18 15:27:29 2020 UTC (3 years, 7 months ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/filesys.h
File MIME type: text/x-chdr
File size: 4800 byte(s)
ログ出力部を分離した

- filesys.cpp から filesys_log.cpp を分離
- プロジェクトにファイル追加
  - VS2005, VS2019, cmake
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3 zmatsuo 8822 * (C) 2007-2020 TeraTerm Project
4 doda 6806 * All rights reserved.
5     *
6 doda 6841 * Redistribution and use in source and binary forms, with or without
7     * modification, are permitted provided that the following conditions
8     * are met:
9 doda 6806 *
10 doda 6841 * 1. Redistributions of source code must retain the above copyright
11     * notice, this list of conditions and the following disclaimer.
12     * 2. Redistributions in binary form must reproduce the above copyright
13     * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the distribution.
15     * 3. The name of the author may not be used to endorse or promote products
16     * derived from this software without specific prior written permission.
17 doda 6806 *
18 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 doda 6806 */
29 maya 3227
30     /* TERATERM.EXE, file transfer routines */
31     #ifdef __cplusplus
32     extern "C" {
33     #endif
34 doda 6801 typedef BOOL (PASCAL *PGetSetupFname)
35 maya 3227 (HWND HWin, WORD FuncId, PTTSet ts);
36 doda 6801 typedef BOOL (PASCAL *PGetTransFname)
37 maya 3227 (PFileVar fv, PCHAR CurDir, WORD FuncId, LPLONG Option);
38 doda 6801 typedef BOOL (PASCAL *PGetMultiFname)
39 maya 3227 (PFileVar fv, PCHAR CurDir, WORD FuncId, LPWORD Option);
40 doda 6801 typedef BOOL (PASCAL *PGetGetFname)
41 maya 3227 (HWND HWin, PFileVar fv);
42 doda 6801 typedef void (PASCAL *PSetFileVar) (PFileVar fv);
43     typedef BOOL (PASCAL *PGetXFname)
44 maya 3227 (HWND HWin, BOOL Receive, LPLONG Option, PFileVar fv, PCHAR CurDir);
45 doda 6801 typedef void (PASCAL *PProtoInit)
46 maya 3227 (int Proto, PFileVar fv, PCHAR pv, PComVar cv, PTTSet ts);
47 doda 6801 typedef BOOL (PASCAL *PProtoParse)
48 maya 3227 (int Proto, PFileVar fv, PCHAR pv, PComVar cv);
49 doda 6801 typedef void (PASCAL *PProtoTimeOutProc)
50 maya 3227 (int Proto, PFileVar fv, PCHAR pv, PComVar cv);
51 doda 6801 typedef BOOL (PASCAL *PProtoCancel)
52 maya 3227 (int Proto, PFileVar fv, PCHAR pv, PComVar cv);
53 maya 7182 typedef BOOL (PASCAL *PTTFILESetUILanguageFile)
54     (char *file);
55     typedef BOOL (PASCAL *PTTFILESetFileSendFilter)
56     (char *file);
57 maya 3227
58     extern PGetSetupFname GetSetupFname;
59 zmatsuo 8852 //extern PGetTransFname GetTransFname;
60 maya 3227 extern PGetMultiFname GetMultiFname;
61     extern PGetGetFname GetGetFname;
62     extern PSetFileVar SetFileVar;
63     extern PGetXFname GetXFname;
64     extern PProtoInit ProtoInit;
65 zmatsuo 8857 //extern PProtoParse ProtoParse;
66 maya 3227 extern PProtoTimeOutProc ProtoTimeOutProc;
67     extern PProtoCancel ProtoCancel;
68 maya 7182 extern PTTFILESetUILanguageFile TTFILESetUILanguageFile;
69     extern PTTFILESetFileSendFilter TTFILESetFileSendFilter;
70 maya 3227
71 zmatsuo 8858 BOOL LoadTTFILE(void);
72     BOOL FreeTTFILE(void);
73 zmatsuo 8857 //void ShowFTDlg(WORD OpId);
74 maya 3227 BOOL NewFileVar(PFileVar *FV);
75     void FreeFileVar(PFileVar *FV);
76    
77 zmatsuo 8858 void FileSendStart(void);
78     void FileSend(void);
79 maya 3227 void FileTransEnd(WORD OpId);
80 zmatsuo 8857 void FileTransPause(WORD OpId, BOOL Pause);
81 maya 3227
82 zmatsuo 8858 void ProtoEnd(void);
83     int ProtoDlgParse(void);
84     void ProtoDlgTimeOut(void);
85     void ProtoDlgCancel(void);
86 maya 3227 void KermitStart(int mode);
87     void XMODEMStart(int mode);
88     void YMODEMStart(int mode);
89     void ZMODEMStart(int mode);
90     void BPStart(int mode);
91     void QVStart(int mode);
92    
93 zmatsuo 8852 extern PFileVar SendVar, FileVar;
94 maya 3227
95 zmatsuo 8852 // log
96 zmatsuo 8863 typedef struct {
97     wchar_t *filename; // [in] �t�@�C���������l(NULL=default) [out] �����t�@�C�����Afree()��������
98     BOOL append; // TRUE/FALSE = append/new(overwrite)
99     BOOL bom; // TRUE = BOM����
100     int code; // 0/1/2 = UTF-8/UTF-16LE/UTF-16BE
101     } FLogDlgInfo_t;
102 zmatsuo 8894 extern BOOL FileLog, BinLog;
103 maya 3227 void logfile_lock_initialize(void);
104 zmatsuo 8894 void LogPut1(BYTE b);
105     void LogToFile(void);
106     BOOL CreateLogBuf(void);
107     void FreeLogBuf(void);
108     BOOL CreateBinBuf(void);
109     void FreeBinBuf(void);
110     void FLogPause(BOOL Pause);
111 zmatsuo 8858 void FLogRotateSize(size_t size);
112     void FLogRotateRotate(int step);
113     void FLogRotateHalt(void);
114     void FLogAddCommentDlg(HINSTANCE hInst, HWND hWnd);
115     void FLogClose(void);
116     BOOL FLogOpen(const char *fname);
117     BOOL FLogIsOpend(void);
118     void FLogWriteStr(const char *str);
119     void FLogInfo(char *param_ptr, size_t param_len);
120     const char *FLogGetFilename(void);
121 zmatsuo 8863 BOOL FLogOpenDialog(HINSTANCE hInst, HWND hWnd, FLogDlgInfo_t *info);
122 zmatsuo 8858 char *FLogGetLogFilename(const char *log_filename);
123 zmatsuo 8857 BOOL FLogIsPause(void);
124     void FLogWindow(int nCmdShow);
125     void FLogShowDlg(void);
126 maya 3227
127     #ifdef __cplusplus
128     }
129     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26