Freeciv-3.3
Loading...
Searching...
No Matches
api_fcdb_auth.c
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#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* utility */
19#include "log.h"
20
21/* common */
22#include "connection.h"
23
24/* common/scriptcore */
25#include "luascript.h"
26
27/* server */
28#include "auth.h"
29#include "connecthand.h"
30
31/* server/scripting */
32#include "script_fcdb.h"
33
34#include "api_fcdb_auth.h"
35
36/**********************************************************************/
47
48/**********************************************************************/
59
60/**********************************************************************/
71
72/**********************************************************************/
const char * api_auth_get_username(lua_State *L, Connection *pconn)
void api_auth_set_cmdlevel(lua_State *L, Connection *pconn, int level)
int api_auth_get_cmdlevel(lua_State *L, Connection *pconn)
const char * api_auth_get_ipaddr(lua_State *L, Connection *pconn)
const char * auth_get_username(struct connection *pconn)
Definition auth.c:348
const char * auth_get_ipaddr(struct connection *pconn)
Definition auth.c:358
char * incite_cost
Definition comments.c:76
void conn_set_access(struct connection *pconn, enum cmdlevel new_level, bool granted)
Definition connecthand.c:72
enum cmdlevel conn_get_access(const struct connection *pconn)
Definition connection.c:775
bool conn_is_valid(const struct connection *pconn)
Definition connection.c:934
#define fc_assert_ret(condition)
Definition log.h:192
#define fc_assert_ret_val(condition, val)
Definition log.h:195
#define LUASCRIPT_CHECK_STATE(L,...)
Definition luascript.h:117
#define LUASCRIPT_CHECK_SELF(L, value,...)
Definition luascript.h:146
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190
#define TRUE
Definition support.h:46