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 8905 - (hide annotations) (download) (as text)
Tue Aug 18 15:31:25 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: 2806 byte(s)
コメントの書き込みを Unicode 化した

- FLogWriteStr()
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 8852 // log
37 zmatsuo 8863 typedef struct {
38     wchar_t *filename; // [in] �t�@�C���������l(NULL=default) [out] �����t�@�C�����Afree()��������
39     BOOL append; // TRUE/FALSE = append/new(overwrite)
40     BOOL bom; // TRUE = BOM����
41     int code; // 0/1/2 = UTF-8/UTF-16LE/UTF-16BE
42     } FLogDlgInfo_t;
43 zmatsuo 8905 BOOL FLogOpenDialog(HINSTANCE hInst, HWND hWnd, FLogDlgInfo_t *info);
44     void FLogAddCommentDlg(HINSTANCE hInst, HWND hWnd);
45     wchar_t *FLogGetLogFilename(const wchar_t *log_filename);
46    
47 maya 3227 void logfile_lock_initialize(void);
48 zmatsuo 8894 void FLogPause(BOOL Pause);
49 zmatsuo 8858 void FLogRotateSize(size_t size);
50     void FLogRotateRotate(int step);
51     void FLogRotateHalt(void);
52     void FLogClose(void);
53 zmatsuo 8899 BOOL FLogOpen(const wchar_t *fname);
54 zmatsuo 8858 BOOL FLogIsOpend(void);
55 zmatsuo 8904 BOOL FLogIsOpendText(void);
56     BOOL FLogIsOpendBin(void);
57 zmatsuo 8905 void FLogWriteStr(const wchar_t *str);
58 zmatsuo 8858 void FLogInfo(char *param_ptr, size_t param_len);
59 zmatsuo 8899 const wchar_t *FLogGetFilename(void);
60 zmatsuo 8857 BOOL FLogIsPause(void);
61     void FLogWindow(int nCmdShow);
62     void FLogShowDlg(void);
63 zmatsuo 8897 int FLogGetCount(void);
64 zmatsuo 8905 int FLogGetFreeCount(void);
65 zmatsuo 8897 void FLogWriteFile(void);
66 zmatsuo 8904 void FLogPutUTF32(unsigned int u32);
67     void FLogSetCode(int code);
68     void FLogOutputBOM(void);
69     //void LogPut1(BYTE b);
70 maya 3227
71     #ifdef __cplusplus
72     }
73     #endif

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