Freeciv-3.2
Loading...
Searching...
No Matches
api_signal_base.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__API_SIGNAL_BASE_H
15#define FC__API_SIGNAL_BASE_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* utility */
22#include "support.h"
23
24struct lua_State;
25
26void api_signal_connect(lua_State *L, const char *signal_name,
27 const char *callback_name);
28void api_signal_remove(lua_State *L, const char *signal_name,
29 const char *callback_name);
30bool api_signal_defined(lua_State *L, const char *signal_name,
31 const char *callback_name);
32
34 const char *signal_name, int sindex);
35
36const char *api_signal_by_index(lua_State *L, int sindex);
37
38#ifdef __cplusplus
39}
40#endif /* __cplusplus */
41
42#endif /* FC__API_SIGNAL_BASE_H */
const char * api_signal_callback_by_index(lua_State *L, const char *signal_name, int sindex)
bool api_signal_defined(lua_State *L, const char *signal_name, const char *callback_name)
const char * api_signal_by_index(lua_State *L, int sindex)
void api_signal_connect(lua_State *L, const char *signal_name, const char *callback_name)
void api_signal_remove(lua_State *L, const char *signal_name, const char *callback_name)
char * incite_cost
Definition comments.c:75