Crossfire Client, Trunk
script.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_common_script_h =
3  * "$Id$";
4  */
5 /*
6  Crossfire client, a client program for the crossfire program.
7 
8  Copyright (C) 2003 Mark Wedel & Crossfire Development Team
9  This source file also Copyright (C) 2003 Preston Crow
10 
11  This program is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 
25  The author can be reached via e-mail to crossfire-devel@real-time.com
26 */
27 
33 #ifndef SCRIPT_H
34 #define SCRIPT_H
35 
36 #ifndef PF_LOCAL
37 #define PF_LOCAL PF_UNIX /* Old BSD name for PF_LOCAL. */
38 #endif
39 #ifndef AF_LOCAL
40 #define AF_LOCAL PF_LOCAL
41 #endif
42 
43 enum CmdFormat {
47  SHORT_INT, /* one short, one int */
48  MIXED, /* weird ones like magic map */
51 };
52 
53 void script_init(const char *params);
54 void script_list(void);
55 void script_sync(int cmddiff);
56 void script_kill(const char *params);
57 void script_killall_wrapper(const char *params);
58 void script_killall(void);
59 void script_fdset(int *maxfd,fd_set *set);
60 void script_process(fd_set *set);
61 void script_watch(const char *cmd, const guint8 *data, const int len, const enum CmdFormat format);
62 void script_monitor(const char *command, int repeat, int must_send);
63 void script_monitor_str(const char *command);
64 void script_tell(const char *params);
65 
66 #endif /* SCRIPT_H */
MIXED
@ MIXED
Definition: script.h:48
CmdFormat
CmdFormat
Definition: script.h:43
STATS
@ STATS
Definition: script.h:49
script_killall
void script_killall(void)
Definition: script.c:541
script_fdset
void script_fdset(int *maxfd, fd_set *set)
Definition: script.c:558
script_sync
void script_sync(int cmddiff)
Definition: script.c:475
script::cmd
char cmd[1024]
Definition: script.c:134
script_list
void script_list(void)
Definition: script.c:493
INT_ARRAY
@ INT_ARRAY
Definition: script.h:46
script_killall_wrapper
void script_killall_wrapper(const char *params)
Definition: script.c:536
script_process
void script_process(fd_set *set)
Definition: script.c:573
script::params
char * params
Definition: script.c:122
NODATA
@ NODATA
Definition: script.h:50
ASCII
@ ASCII
Definition: script.h:44
script_watch
void script_watch(const char *cmd, const guint8 *data, const int len, const enum CmdFormat format)
Definition: script.c:632
script_tell
void script_tell(const char *params)
Definition: script.c:959
SHORT_ARRAY
@ SHORT_ARRAY
Definition: script.h:45
script_init
void script_init(const char *params)
Definition: script.c:205
maxfd
int maxfd
Definition: client.c:58
script_monitor
void script_monitor(const char *command, int repeat, int must_send)
Definition: script.c:927
SHORT_INT
@ SHORT_INT
Definition: script.h:47
script_kill
void script_kill(const char *params)
Definition: script.c:515
script_monitor_str
void script_monitor_str(const char *command)
Definition: script.c:943