Crossfire Client, Branches  R11627
script.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_script_h =
3  * "$Id: script.h 8952 2008-05-09 13:16:22Z ryo_saeba $";
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 #ifndef SCRIPT_H
28 #define SCRIPT_H
29 
30 #ifndef PF_LOCAL
31 #define PF_LOCAL PF_UNIX /* Old BSD name for PF_LOCAL. */
32 #endif
33 #ifndef AF_LOCAL
34 #define AF_LOCAL PF_LOCAL
35 #endif
36 
37 enum CmdFormat {
41  SHORT_INT, /* one short, one int */
42  MIXED, /* weird ones like magic map */
45 };
46 
47 void script_init(const char *params);
48 void script_list(void);
49 void script_sync(int cmddiff);
50 void script_kill(const char *params);
51 #ifdef WIN32
52 void script_killall(void);
53 #endif
54 void script_fdset(int *maxfd,fd_set *set);
55 void script_process(fd_set *set);
56 void script_watch(const char *cmd, const uint8 *data, const int len, const enum CmdFormat format);
57 void script_monitor(const char *command, int repeat, int must_send);
58 void script_monitor_str(const char *command);
59 void script_tell(const char *params);
60 
61 #endif /* SCRIPT_H */
int maxfd
Definition: client.c:68
void script_process(fd_set *set)
Definition: script.c:572
Definition: script.h:43
void script_sync(int cmddiff)
Definition: script.c:488
void script_kill(const char *params)
Definition: script.c:528
snd_pcm_hw_params_t * params
Definition: alsa9.c:111
void script_list(void)
Definition: script.c:504
void script_monitor(const char *command, int repeat, int must_send)
Definition: script.c:854
CmdFormat
Definition: script.h:37
void script_watch(const char *cmd, const uint8 *data, const int len, const enum CmdFormat format)
Definition: script.c:634
void script_tell(const char *params)
Definition: script.c:890
Definition: script.h:42
void script_monitor_str(const char *command)
Definition: script.c:872
Definition: script.h:38
void script_init(const char *params)
Definition: script.c:213
char cmd[1024]
Definition: script.c:148
Definition: script.h:44
unsigned char uint8
Definition: client-types.h:81
void script_fdset(int *maxfd, fd_set *set)
Definition: script.c:559