Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/luascript/script_client.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
script_client.h
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
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 2, or (at your option)
6 any later version.
7
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.
12*****************************************************************************/
13
14#ifndef FC__SCRIPT_CLIENT_H
15#define FC__SCRIPT_CLIENT_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* common/scriptcore */
22#include "luascript_types.h"
23
24struct section_file;
25
26/* callback invocation function. */
27bool script_client_callback_invoke(const char *callback_name, int nargs,
28 enum api_types *parg_types, va_list args);
29
30void script_client_remove_exported_object(void *object);
31
32/* script functions. */
33bool script_client_init(void);
34void script_client_free(void);
35bool script_client_do_string(const char *str);
36bool script_client_do_file(const char *filename);
37
38/* script state i/o. */
39void script_client_state_load(struct section_file *file);
40void script_client_state_save(struct section_file *file);
41
42/* Signals. */
43 void script_client_signal_connect(const char *signal_name,
44 const char *callback_name);
45void script_client_signal_emit(const char *signal_name, ...);
46 const char *script_client_signal_list(void);
47
48#ifdef __cplusplus
49}
50#endif /* __cplusplus */
51
52#endif /* FC__SCRIPT_CLIENT_H */
str
#define str
Definition astring.c:76
incite_cost
char * incite_cost
Definition comments.c:74
luascript_types.h
script_client_do_file
bool script_client_do_file(const char *filename)
Definition script_client.c:89
script_client_state_load
void script_client_state_load(struct section_file *file)
Definition script_client.c:299
script_client_init
bool script_client_init(void)
Definition script_client.c:195
script_client_do_string
bool script_client_do_string(const char *str)
Definition script_client.c:79
script_client_state_save
void script_client_state_save(struct section_file *file)
Definition script_client.c:311
script_client_remove_exported_object
void script_client_remove_exported_object(void *object)
Definition script_client.c:111
script_client_callback_invoke
bool script_client_callback_invoke(const char *callback_name, int nargs, enum api_types *parg_types, va_list args)
Definition script_client.c:99
script_client_signal_list
const char * script_client_signal_list(void)
script_client_free
void script_client_free(void)
Definition script_client.c:283
script_client_signal_emit
void script_client_signal_emit(const char *signal_name,...)
Definition script_client.c:320
script_client_signal_connect
void script_client_signal_connect(const char *signal_name, const char *callback_name)
section_file
Definition section_file.h:36