Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
fc_interface.h File Reference
#include "support.h"
#include "fc_types.h"
#include "vision.h"

Go to the source code of this file.

Data Structures

struct  functions
 

Functions

struct functionsfc_interface_funcs (void)
 
void libfreeciv_init (bool check_fc_interface)
 
void libfreeciv_free (void)
 
static bool is_server (void)
 
void i_am_server (void)
 
void i_am_client (void)
 
static void i_am_tool (void)
 

Variables

const struct functionsfc_funcs
 
bool am_i_server
 

Function Documentation

◆ fc_interface_funcs()

struct functions * fc_interface_funcs ( void  )

Return the function pointer. Only possible before interface_init() was called (fc_funcs_defined FALSE).

Definition at line 47 of file fc_interface.c.

Referenced by fc_interface_init_client(), fc_interface_init_server(), and fc_interface_init_tool().

◆ i_am_client()

void i_am_client ( void  )

Set program type to client.

Definition at line 65 of file fc_interface.c.

Referenced by client_main().

◆ i_am_server()

void i_am_server ( void  )

Set program type to server.

Definition at line 57 of file fc_interface.c.

Referenced by i_am_tool(), and srv_init().

◆ i_am_tool()

static void i_am_tool ( void  )
inlinestatic

Set program type to tool.

Definition at line 80 of file fc_interface.h.

Referenced by main().

◆ is_server()

static bool is_server ( void  )
inlinestatic

◆ libfreeciv_free()

void libfreeciv_free ( void  )

Free misc resources allocated for libfreeciv.

Definition at line 102 of file fc_interface.c.

Referenced by client_exit(), fcmp_deinit(), main(), and server_quit().

◆ libfreeciv_init()

void libfreeciv_init ( bool  check_fc_interface)

Initialize libfreeciv.

Parameters
check_fc_interfaceWhether to also test and initialize functions.

Definition at line 75 of file fc_interface.c.

Referenced by fc_interface_init_client(), fc_interface_init_server(), fc_interface_init_tool(), and fcmp_init().

Variable Documentation

◆ am_i_server

bool am_i_server
extern

Definition at line 65 of file game.c.

Referenced by i_am_client(), i_am_server(), and is_server().

◆ fc_funcs

const struct functions* fc_funcs
extern