Change the script command to the stlye of 'layout' commands.
[screen-lua.git] / src / script.h
blob832838d545824a2b8382bd24ed1e747c151d48c9
1 /* Copyright (c) 2008 Sadrul Habib Chowdhury (sadrul@users.sf.net)
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 3, or (at your option)
6 * any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program (see the file COPYING); if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
18 ****************************************************************
19 * $Id$ FAU
21 #ifndef SCRIPT_H
22 #define SCRIPT_H
23 struct win;
25 struct ScriptFuncs
27 int (*sf_Init) __P((void));
28 int (*sf_Finit) __P((void));
29 int (*sf_ForeWindowChanged) __P((void));
30 int (*sf_Source) __P((const char *, int));
31 int (*sf_ProcessCaption) __P((const char *, struct win *, int len));
32 int (*sf_CommandExecuted) __P((const char *, const char **, int));
35 struct binding
37 char * name;
38 int inited;
39 int registered;
40 int (*bd_Init) __P((void));
41 int (*bd_Finit) __P((void));
42 /*Returns zero on failure, non zero on success*/
43 int (*bd_Source) __P((const char *, int));
44 struct binding *b_next;
45 struct ScriptFuncs *fns;
48 void LoadBindings(void);
49 void FinializeBindings(void);
50 void ScriptCmd __P((int argc, const char **argv));
52 struct listener {
56 struct script_event {
57 int blockable;
58 struct listener *listeners;
61 #endif