Freeciv21
Develop your civilization from humble roots to a global empire
fc_interface.cpp File Reference
#include "shared.h"
#include "player.h"
#include "tile.h"
#include "fc_interface.h"
+ Include dependency graph for fc_interface.cpp:

Go to the source code of this file.

Functions

struct functionsfc_interface_funcs ()
 Return the function pointer. More...
 
void fc_interface_init ()
 Test and initialize the functions. More...
 
void free_libfreeciv ()
 Free misc resources allocated for libfreeciv. More...
 

Variables

struct functions fc_functions
 
const struct functionsfc_funcs = nullptr
 
bool fc_funcs_defined = false
 

Function Documentation

◆ fc_interface_funcs()

struct functions* fc_interface_funcs ( )

Return the function pointer.

Only possible before interface_init() was called (fc_funcs_defined == FALSE).

Definition at line 36 of file fc_interface.cpp.

Referenced by fc_interface_init_client(), and fc_interface_init_tool().

◆ fc_interface_init()

void fc_interface_init ( )

Test and initialize the functions.

The existence of all functions should be checked!

Definition at line 47 of file fc_interface.cpp.

Referenced by fc_interface_init_client(), and fc_interface_init_tool().

◆ free_libfreeciv()

void free_libfreeciv ( )

Free misc resources allocated for libfreeciv.

Definition at line 69 of file fc_interface.cpp.

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

Variable Documentation

◆ fc_funcs

◆ fc_funcs_defined

bool fc_funcs_defined = false

Definition at line 30 of file fc_interface.cpp.

Referenced by fc_interface_funcs(), and fc_interface_init().

◆ fc_functions

struct functions fc_functions

Definition at line 1 of file fc_interface.cpp.

Referenced by fc_interface_funcs(), and fc_interface_init().