Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/teraterm/teraterm/logdlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8910 - (hide annotations) (download) (as text)
Tue Aug 18 15:32:07 2020 UTC (3 years, 7 months ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/filesys_log.h
File MIME type: text/x-chdr
File size: 2972 byte(s)
タイムスタンプがうまく出なかったので修正
1 doda 6806 /*
2 zmatsuo 8900 * (C) 2020 TeraTerm Project
3 doda 6806 * All rights reserved.
4     *
5 doda 6841 * Redistribution and use in source and binary forms, with or without
6     * modification, are permitted provided that the following conditions
7     * are met:
8 doda 6806 *
9 doda 6841 * 1. Redistributions of source code must retain the above copyright
10     * notice, this list of conditions and the following disclaimer.
11     * 2. Redistributions in binary form must reproduce the above copyright
12     * notice, this list of conditions and the following disclaimer in the
13     * documentation and/or other materials provided with the distribution.
14     * 3. The name of the author may not be used to endorse or promote products
15     * derived from this software without specific prior written permission.
16 doda 6806 *
17 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
18     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 doda 6806 */
28 maya 3227
29 zmatsuo 8900 #pragma once
30    
31     /* TERATERM.EXE, log routines */
32 maya 3227 #ifdef __cplusplus
33     extern "C" {
34     #endif
35    
36 zmatsuo 8910 /**
37     * ���O�o�b�t�@�����������T�C�Y
38     * "[YYYY-MM-DD HH:MM:SS.000]" ���������������x
39     */
40     #define FILESYS_LOG_FREE_SPACE (30*2)
41    
42 zmatsuo 8852 // log
43 zmatsuo 8863 typedef struct {
44     wchar_t *filename; // [in] �t�@�C���������l(NULL=default) [out] �����t�@�C�����Afree()��������
45     BOOL append; // TRUE/FALSE = append/new(overwrite)
46     BOOL bom; // TRUE = BOM����
47     int code; // 0/1/2 = UTF-8/UTF-16LE/UTF-16BE
48     } FLogDlgInfo_t;
49 zmatsuo 8905 BOOL FLogOpenDialog(HINSTANCE hInst, HWND hWnd, FLogDlgInfo_t *info);
50     void FLogAddCommentDlg(HINSTANCE hInst, HWND hWnd);
51     wchar_t *FLogGetLogFilename(const wchar_t *log_filename);
52    
53 maya 3227 void logfile_lock_initialize(void);
54 zmatsuo 8894 void FLogPause(BOOL Pause);
55 zmatsuo 8858 void FLogRotateSize(size_t size);
56     void FLogRotateRotate(int step);
57     void FLogRotateHalt(void);
58     void FLogClose(void);
59 zmatsuo 8899 BOOL FLogOpen(const wchar_t *fname);
60 zmatsuo 8858 BOOL FLogIsOpend(void);
61 zmatsuo 8904 BOOL FLogIsOpendText(void);
62     BOOL FLogIsOpendBin(void);
63 zmatsuo 8905 void FLogWriteStr(const wchar_t *str);
64 zmatsuo 8858 void FLogInfo(char *param_ptr, size_t param_len);
65 zmatsuo 8899 const wchar_t *FLogGetFilename(void);
66 zmatsuo 8857 BOOL FLogIsPause(void);
67     void FLogWindow(int nCmdShow);
68     void FLogShowDlg(void);
69 zmatsuo 8897 int FLogGetCount(void);
70 zmatsuo 8905 int FLogGetFreeCount(void);
71 zmatsuo 8897 void FLogWriteFile(void);
72 zmatsuo 8904 void FLogPutUTF32(unsigned int u32);
73     void FLogSetCode(int code);
74     void FLogOutputBOM(void);
75     //void LogPut1(BYTE b);
76 zmatsuo 8908 void FLogOutputAllBuffer(void);
77 maya 3227
78     #ifdef __cplusplus
79     }
80     #endif

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