Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/teraterm/ttplug.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10496 - (show annotations) (download) (as text)
Sun Jan 15 15:06:50 2023 UTC (13 months, 3 weeks ago) by zmatsuo
File MIME type: text/x-chdr
File size: 3766 byte(s)
TGetHNRec を別ファイルに移動した

- TGetHNRec 構造体は主にプラグインで使用
- HostNameMaxLength(ホスト名長 = コマンドライン長)を移動
1 /*
2 * Copyright (C) 1994-1998 T. Teranishi
3 * (C) Robert O'Callahan
4 * (C) 2008- TeraTerm Project
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. The name of the author may not be used to endorse or promote products
17 * derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30 #ifndef __TTPLUG_H
31 #define __TTPLUG_H
32
33 #include "hostname_rec.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 /* This function initializes the extensions and is called at the beginning
40 of the program. */
41 void PASCAL TTXInit(PTTSet ts, PComVar cv);
42
43 /* This function is called when a TCP connection is about to be opened.
44 This macro stuff is to make sure that the functions in the caller's
45 EXE or DLL are hooked. */
46 void PASCAL TTXOpenTCP(void);
47
48 /* This function is called when a TCP connection has been closed.
49 This macro stuff is to make sure that the functions in the caller's
50 EXE or DLL are hooked. */
51 void PASCAL TTXCloseTCP(void);
52
53 void PASCAL TTXOpenFile(void);
54
55 void PASCAL TTXCloseFile(void);
56
57 /* This function is called after the TTDLG DLL has been loaded.
58 This macro stuff is to make sure that the functions in the caller's
59 EXE or DLL are hooked. */
60 void PASCAL TTXGetUIHooks(void);
61
62 /* This function is called after the TTSET DLL has been loaded.
63 This macro stuff is to make sure that the functions in the caller's
64 EXE or DLL are hooked. */
65 void PASCAL TTXGetSetupHooks(void);
66
67 /* This function is called when the window size has changed. */
68 void PASCAL TTXSetWinSize(int rows, int cols);
69
70 /* This function adds the extensions' entries to the menu, which is the
71 handle for the program's menubar. */
72 void PASCAL TTXModifyMenu(HMENU menu);
73
74 /* This function is called when a popup menu is about to be displayed.
75 The status of the entries is set appropriately. */
76 void PASCAL TTXModifyPopupMenu(HMENU menu);
77
78 /* This function calls on the extensions to handle a command. It returns
79 TRUE if they handle it, otherwise FALSE. */
80 BOOL PASCAL TTXProcessCommand(HWND hWin, WORD cmd);
81
82 /* This function is called to see whether Telnet mode can be turned on when
83 Tera Term thinks it has detected a telnetd */
84 void PASCAL TTXEnd(void);
85
86 /* This function is called when a new Tera Term is being started with certain
87 settings and the extension may wish to add some options to the command line */
88 void PASCAL TTXSetCommandLine(wchar_t *cmd, int cmdlen, PGetHNRec rec);
89 #ifdef __cplusplus
90 }
91 #endif
92
93 #endif

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