Freeciv-3.1
|
#include "fc_prehdrs.h"
#include <limits.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bitvector.h"
#include "capability.h"
#include "log.h"
#include "mem.h"
#include "support.h"
#include "events.h"
#include "player.h"
#include "requirements.h"
#include "tech.h"
#include "worklist.h"
#include "cm.h"
#include "dataio.h"
Go to the source code of this file.
Macros | |
#define | FIELD_RANGE_TEST(_test_, _action_, _format_, ...) |
Functions | |
static bool | get_conv (char *dst, size_t ndst, const char *src, size_t nsrc) |
void | dio_set_put_conv_callback (DIO_PUT_CONV_FUN fun) |
void | dio_set_get_conv_callback (DIO_GET_CONV_FUN fun) |
bool | dataio_get_conv_callback (char *dst, size_t ndst, const char *src, size_t nsrc) |
static bool | enough_space (struct raw_data_out *dout, size_t size) |
static bool | enough_data (struct data_in *din, size_t size) |
void | dio_output_init (struct raw_data_out *dout, void *destination, size_t dest_size) |
size_t | dio_output_used (struct raw_data_out *dout) |
void | dio_output_rewind (struct raw_data_out *dout) |
void | dio_input_init (struct data_in *din, const void *src, size_t src_size) |
void | dio_input_rewind (struct data_in *din) |
size_t | dio_input_remaining (struct data_in *din) |
size_t | data_type_size (enum data_type type) |
bool | dio_input_skip (struct data_in *din, size_t size) |
void | dio_put_uint8_raw (struct raw_data_out *dout, int value) |
void | dio_put_uint16_raw (struct raw_data_out *dout, int value) |
void | dio_put_uint32_raw (struct raw_data_out *dout, int value) |
void | dio_put_type_raw (struct raw_data_out *dout, enum data_type type, int value) |
void | dio_put_sint8_raw (struct raw_data_out *dout, int value) |
void | dio_put_sint16_raw (struct raw_data_out *dout, int value) |
void | dio_put_sint32_raw (struct raw_data_out *dout, int value) |
void | dio_put_bool8_raw (struct raw_data_out *dout, bool value) |
void | dio_put_bool32_raw (struct raw_data_out *dout, bool value) |
void | dio_put_ufloat_raw (struct raw_data_out *dout, float value, int float_factor) |
void | dio_put_sfloat_raw (struct raw_data_out *dout, float value, int float_factor) |
void | dio_put_uint8_vec8_raw (struct raw_data_out *dout, int *values, int stop_value) |
void | dio_put_uint16_vec8_raw (struct raw_data_out *dout, int *values, int stop_value) |
void | dio_put_memory_raw (struct raw_data_out *dout, const void *value, size_t size) |
void | dio_put_string_raw (struct raw_data_out *dout, const char *value) |
void | dio_put_cm_parameter_raw (struct raw_data_out *dout, const struct cm_parameter *param) |
void | dio_put_unit_order_raw (struct raw_data_out *dout, const struct unit_order *order) |
void | dio_put_worklist_raw (struct raw_data_out *dout, const struct worklist *pwl) |
bool | dio_get_uint8_raw (struct data_in *din, int *dest) |
bool | dio_get_uint16_raw (struct data_in *din, int *dest) |
bool | dio_get_uint32_raw (struct data_in *din, int *dest) |
bool | dio_get_type_raw (struct data_in *din, enum data_type type, int *dest) |
bool | dio_get_bool8_raw (struct data_in *din, bool *dest) |
bool | dio_get_bool32_raw (struct data_in *din, bool *dest) |
bool | dio_get_ufloat_raw (struct data_in *din, float *dest, int float_factor) |
bool | dio_get_sfloat_raw (struct data_in *din, float *dest, int float_factor) |
bool | dio_get_sint8_raw (struct data_in *din, int *dest) |
bool | dio_get_sint16_raw (struct data_in *din, int *dest) |
bool | dio_get_sint32_raw (struct data_in *din, int *dest) |
bool | dio_get_memory_raw (struct data_in *din, void *dest, size_t dest_size) |
bool | dio_get_string_raw (struct data_in *din, char *dest, size_t max_dest_size) |
bool | dio_get_cm_parameter_raw (struct data_in *din, struct cm_parameter *param) |
bool | dio_get_unit_order_raw (struct data_in *din, struct unit_order *order) |
bool | dio_get_worklist_raw (struct data_in *din, struct worklist *pwl) |
bool | dio_get_uint8_vec8_raw (struct data_in *din, int **values, int stop_value) |
bool | dio_get_uint16_vec8_raw (struct data_in *din, int **values, int stop_value) |
bool | dio_get_action_probability_raw (struct data_in *din, struct act_prob *aprob) |
void | dio_put_action_probability_raw (struct raw_data_out *dout, const struct act_prob *aprob) |
bool | dio_get_requirement_raw (struct data_in *din, struct requirement *preq) |
void | dio_put_requirement_raw (struct raw_data_out *dout, const struct requirement *preq) |
struct plocation * | plocation_field_new (char *name) |
struct plocation * | plocation_elem_new (int number) |
const char * | plocation_name (const struct plocation *loc) |
Variables | |
static DIO_PUT_CONV_FUN | put_conv_callback = NULL |
static DIO_GET_CONV_FUN | get_conv_callback = get_conv |
#define FIELD_RANGE_TEST | ( | _test_, | |
_action_, | |||
_format_, | |||
... | |||
) |
Definition at line 92 of file dataio_raw.c.
size_t data_type_size | ( | enum data_type | type | ) |
Return the size of the data_type in bytes.
Definition at line 229 of file dataio_raw.c.
Referenced by conn_compression_flush(), and get_packet_from_connection_raw().
bool dataio_get_conv_callback | ( | char * | dst, |
size_t | ndst, | ||
const char * | src, | ||
size_t | nsrc | ||
) |
Call the get_conv callback.
Definition at line 139 of file dataio_raw.c.
De-serialize an action probability.
Definition at line 992 of file dataio_raw.c.
Take boolean value from 32 bits.
Definition at line 681 of file dataio_raw.c.
Take boolean value from 8 bits.
Definition at line 661 of file dataio_raw.c.
Referenced by cma_get_parameter(), dio_get_cm_parameter_raw(), and dio_get_requirement_raw().
bool dio_get_cm_parameter_raw | ( | struct data_in * | din, |
struct cm_parameter * | param | ||
) |
Get city manager parameters.
Definition at line 842 of file dataio_raw.c.
Take memory block directly.
Definition at line 790 of file dataio_raw.c.
Referenced by attribute_get(), and unserialize_hash().
bool dio_get_requirement_raw | ( | struct data_in * | din, |
struct requirement * | preq | ||
) |
De-serialize a requirement.
Definition at line 1022 of file dataio_raw.c.
Get a signed float number, which have been multiplied by 'float_factor' and encoded into a sint32 by dio_put_sfloat().
Definition at line 718 of file dataio_raw.c.
Take value from 16 bits.
Definition at line 751 of file dataio_raw.c.
Referenced by cma_get_parameter(), dio_get_cm_parameter_raw(), dio_get_type_raw(), dio_get_unit_order_raw(), and unserialize_hash().
Take value from 32 bits.
Definition at line 769 of file dataio_raw.c.
Referenced by dio_get_requirement_raw(), dio_get_sfloat_raw(), dio_get_type_raw(), and dio_get_unit_order_raw().
Take value from 8 bits.
Definition at line 733 of file dataio_raw.c.
Referenced by dio_get_type_raw(), and dio_get_unit_order_raw().
Take string. Conversion callback is used.
Definition at line 805 of file dataio_raw.c.
Referenced by get_lan_server_list().
Receive value using 'size' bits to dest.
Definition at line 635 of file dataio_raw.c.
Referenced by get_packet_from_connection_raw(), and packet_check().
Get an unsigned float number, which have been multiplied by 'float_factor' and encoded into an uint32 by dio_put_ufloat_raw().
Definition at line 702 of file dataio_raw.c.
Receive uint16 value to dest.
Definition at line 593 of file dataio_raw.c.
Referenced by dio_get_cm_parameter_raw(), dio_get_sint16_raw(), dio_get_type_raw(), dio_get_uint16_vec8_raw(), and remove_packet_from_buffer().
Receive vector of uint16 values.
Definition at line 967 of file dataio_raw.c.
Receive uint32 value to dest.
Definition at line 614 of file dataio_raw.c.
Referenced by attribute_get(), dio_get_bool32_raw(), dio_get_sint32_raw(), dio_get_type_raw(), dio_get_ufloat_raw(), get_packet_from_connection_raw(), serialize_hash(), and unserialize_hash().
Receive uint8 value to dest.
Definition at line 572 of file dataio_raw.c.
Referenced by cma_get_parameter(), dio_get_action_probability_raw(), dio_get_bool8_raw(), dio_get_requirement_raw(), dio_get_sint8_raw(), dio_get_type_raw(), dio_get_uint16_vec8_raw(), dio_get_uint8_vec8_raw(), dio_get_unit_order_raw(), dio_get_worklist_raw(), get_lan_server_list(), get_lanserver_announcement(), and unserialize_hash().
Take vector of 8 bit values and insert stop_value after them. stop_value does not need to fit in 8 bits.
Definition at line 942 of file dataio_raw.c.
bool dio_get_unit_order_raw | ( | struct data_in * | din, |
struct unit_order * | order | ||
) |
Take unit_order struct and put it in the provided orders.
Definition at line 880 of file dataio_raw.c.
Take worklist item count and then kind and number for each item, and put them to provided worklist.
Definition at line 906 of file dataio_raw.c.
void dio_input_init | ( | struct data_in * | din, |
const void * | src, | ||
size_t | src_size | ||
) |
Initializes the input to the given input buffer and the given number of valid input bytes.
Definition at line 202 of file dataio_raw.c.
Referenced by attribute_get(), cma_get_parameter(), get_lan_server_list(), get_lanserver_announcement(), get_packet_from_connection_raw(), remove_packet_from_buffer(), serialize_hash(), and unserialize_hash().
size_t dio_input_remaining | ( | struct data_in * | din | ) |
Return the number of unread bytes.
Definition at line 221 of file dataio_raw.c.
Referenced by dio_get_string_raw(), enough_data(), get_packet_from_connection_raw(), packet_check(), and unserialize_hash().
void dio_input_rewind | ( | struct data_in * | din | ) |
Rewinds the stream so that the get-functions start from the beginning.
Definition at line 213 of file dataio_raw.c.
Referenced by packet_check().
Skips 'n' bytes.
Definition at line 252 of file dataio_raw.c.
void dio_output_init | ( | struct raw_data_out * | dout, |
void * | destination, | ||
size_t | dest_size | ||
) |
Initializes the output to the given output buffer and the given buffer size.
Definition at line 171 of file dataio_raw.c.
Referenced by attribute_set(), begin_lanserver_scan(), cma_set_parameter(), conn_compression_flush(), send_lanserver_response(), serialize_hash(), server_packet_input(), and unserialize_hash().
void dio_output_rewind | ( | struct raw_data_out * | dout | ) |
Rewinds the stream so that the put-functions start from the beginning.
Definition at line 193 of file dataio_raw.c.
Referenced by server_packet_input().
size_t dio_output_used | ( | struct raw_data_out * | dout | ) |
Return the maximum number of bytes used.
Definition at line 184 of file dataio_raw.c.
Referenced by begin_lanserver_scan(), cma_set_parameter(), send_lanserver_response(), serialize_hash(), and server_packet_input().
void dio_put_action_probability_raw | ( | struct raw_data_out * | dout, |
const struct act_prob * | aprob | ||
) |
Serialize an action probability.
Definition at line 1012 of file dataio_raw.c.
void dio_put_bool32_raw | ( | struct raw_data_out * | dout, |
bool | value | ||
) |
Insert value 0 or 1 using 32 bits.
Definition at line 393 of file dataio_raw.c.
Referenced by server_packet_input().
void dio_put_bool8_raw | ( | struct raw_data_out * | dout, |
bool | value | ||
) |
Insert value 0 or 1 using 8 bits.
Definition at line 381 of file dataio_raw.c.
Referenced by cma_set_parameter(), dio_put_cm_parameter_raw(), and dio_put_requirement_raw().
void dio_put_cm_parameter_raw | ( | struct raw_data_out * | dout, |
const struct cm_parameter * | param | ||
) |
Insert cm_parameter struct.
Definition at line 517 of file dataio_raw.c.
void dio_put_memory_raw | ( | struct raw_data_out * | dout, |
const void * | value, | ||
size_t | size | ||
) |
Insert block directly from memory.
Definition at line 488 of file dataio_raw.c.
Referenced by attribute_set(), dio_put_string_raw(), and serialize_hash().
void dio_put_requirement_raw | ( | struct raw_data_out * | dout, |
const struct requirement * | preq | ||
) |
Serialize a requirement.
Definition at line 1048 of file dataio_raw.c.
void dio_put_sfloat_raw | ( | struct raw_data_out * | dout, |
float | value, | ||
int | float_factor | ||
) |
Insert a float number, which is multiplied by 'float_factor' before being encoded into a sint32.
Definition at line 424 of file dataio_raw.c.
void dio_put_sint16_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 16 bits. May overflow.
Definition at line 361 of file dataio_raw.c.
Referenced by cma_set_parameter(), dio_put_cm_parameter_raw(), dio_put_type_raw(), dio_put_unit_order_raw(), and serialize_hash().
void dio_put_sint32_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 32 bits. May overflow.
Definition at line 369 of file dataio_raw.c.
Referenced by dio_put_requirement_raw(), dio_put_sfloat_raw(), dio_put_type_raw(), and dio_put_unit_order_raw().
void dio_put_sint8_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 8 bits. May overflow.
Definition at line 353 of file dataio_raw.c.
Referenced by dio_put_type_raw(), and dio_put_unit_order_raw().
void dio_put_string_raw | ( | struct raw_data_out * | dout, |
const char * | value | ||
) |
Insert NULL-terminated string. Conversion callback is used if set.
Definition at line 499 of file dataio_raw.c.
Referenced by send_lanserver_response(), and server_packet_input().
void dio_put_type_raw | ( | struct raw_data_out * | dout, |
enum data_type | type, | ||
int | value | ||
) |
Insert value using 'size' bits. May overflow.
Definition at line 322 of file dataio_raw.c.
void dio_put_ufloat_raw | ( | struct raw_data_out * | dout, |
float | value, | ||
int | float_factor | ||
) |
Insert a float number, which is multiplied by 'float_factor' before being encoded into an uint32.
Definition at line 407 of file dataio_raw.c.
void dio_put_uint16_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 16 bits. May overflow.
Definition at line 284 of file dataio_raw.c.
Referenced by conn_compression_flush(), dio_put_cm_parameter_raw(), dio_put_sint16_raw(), dio_put_type_raw(), dio_put_uint16_vec8_raw(), and server_packet_input().
void dio_put_uint16_vec8_raw | ( | struct raw_data_out * | dout, |
int * | values, | ||
int | stop_value | ||
) |
Insert number of values before stop_value using 8 bits. Then insert values using 16 bits for each. stop_value is not required to fit in 16 bits. Actual values may overflow.
Definition at line 466 of file dataio_raw.c.
void dio_put_uint32_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 32 bits. May overflow.
Definition at line 303 of file dataio_raw.c.
Referenced by attribute_set(), conn_compression_flush(), dio_put_bool32_raw(), dio_put_sint32_raw(), dio_put_type_raw(), dio_put_ufloat_raw(), serialize_hash(), and unserialize_hash().
void dio_put_uint8_raw | ( | struct raw_data_out * | dout, |
int | value | ||
) |
Insert value using 8 bits. May overflow.
Definition at line 265 of file dataio_raw.c.
Referenced by begin_lanserver_scan(), cma_set_parameter(), dio_put_action_probability_raw(), dio_put_bool8_raw(), dio_put_requirement_raw(), dio_put_sint8_raw(), dio_put_type_raw(), dio_put_uint16_vec8_raw(), dio_put_uint8_vec8_raw(), dio_put_unit_order_raw(), dio_put_worklist_raw(), send_lanserver_response(), serialize_hash(), and server_packet_input().
void dio_put_uint8_vec8_raw | ( | struct raw_data_out * | dout, |
int * | values, | ||
int | stop_value | ||
) |
Insert number of values before stop_value using 8 bits. Then insert values using 8 bits for each. stop_value is not required to fit in 8 bits. Actual values may overflow.
Definition at line 442 of file dataio_raw.c.
void dio_put_unit_order_raw | ( | struct raw_data_out * | dout, |
const struct unit_order * | order | ||
) |
Insert the given unit_order struct/
Definition at line 541 of file dataio_raw.c.
void dio_put_worklist_raw | ( | struct raw_data_out * | dout, |
const struct worklist * | pwl | ||
) |
Insert number of worklist items as 8 bit value and then insert 8 bit kind and 8 bit number for each worklist item.
Definition at line 556 of file dataio_raw.c.
void dio_set_get_conv_callback | ( | DIO_GET_CONV_FUN | fun | ) |
Sets string conversion callback to use when getting text.
Definition at line 131 of file dataio_raw.c.
Referenced by charsets_init().
void dio_set_put_conv_callback | ( | DIO_PUT_CONV_FUN | fun | ) |
Sets string conversion callback to be used when putting text.
Definition at line 102 of file dataio_raw.c.
Referenced by charsets_init().
Returns TRUE iff the input contains size unread bytes.
Definition at line 162 of file dataio_raw.c.
Referenced by dio_get_memory_raw(), dio_get_string_raw(), dio_get_uint16_raw(), dio_get_uint32_raw(), dio_get_uint8_raw(), and dio_input_skip().
|
static |
Returns TRUE iff the output has size bytes available.
Definition at line 148 of file dataio_raw.c.
Referenced by dio_put_memory_raw(), dio_put_uint16_raw(), dio_put_uint16_vec8_raw(), dio_put_uint32_raw(), dio_put_uint8_raw(), and dio_put_uint8_vec8_raw().
|
static |
Returns FALSE if the destination isn't large enough or the source was bad. This is default get_conv_callback.
Definition at line 111 of file dataio_raw.c.
struct plocation * plocation_elem_new | ( | int | number | ) |
Create a new address of the location of an array element inside a packet.
Definition at line 1081 of file dataio_raw.c.
Referenced by receive_packet_calendar_info_100(), receive_packet_city_info_100(), receive_packet_city_info_101(), receive_packet_city_info_102(), receive_packet_city_info_103(), receive_packet_city_nationalities_100(), receive_packet_city_nationalities_101(), receive_packet_city_rally_point_100(), receive_packet_city_rally_point_101(), receive_packet_conn_ping_info_100(), receive_packet_edit_city_100(), receive_packet_edit_city_101(), receive_packet_edit_player_100(), receive_packet_endgame_player_100(), receive_packet_endgame_report_100(), receive_packet_game_info_100(), receive_packet_nation_availability_100(), receive_packet_player_info_100(), receive_packet_player_multiplier_100(), receive_packet_ruleset_action_auto_100(), receive_packet_ruleset_action_enabler_100(), receive_packet_ruleset_building_100(), receive_packet_ruleset_choices_100(), receive_packet_ruleset_city_100(), receive_packet_ruleset_clause_100(), receive_packet_ruleset_disaster_100(), receive_packet_ruleset_effect_100(), receive_packet_ruleset_extra_100(), receive_packet_ruleset_game_100(), receive_packet_ruleset_goods_100(), receive_packet_ruleset_government_100(), receive_packet_ruleset_multiplier_100(), receive_packet_ruleset_music_100(), receive_packet_ruleset_nation_100(), receive_packet_ruleset_nation_groups_100(), receive_packet_ruleset_nation_sets_100(), receive_packet_ruleset_resource_100(), receive_packet_ruleset_road_100(), receive_packet_ruleset_specialist_100(), receive_packet_ruleset_tech_100(), receive_packet_ruleset_terrain_100(), receive_packet_ruleset_unit_100(), receive_packet_server_setting_bitwise_100(), receive_packet_server_setting_control_100(), receive_packet_server_setting_enum_100(), receive_packet_unit_actions_100(), receive_packet_unit_actions_101(), receive_packet_unit_info_100(), receive_packet_unit_info_101(), receive_packet_unit_orders_100(), receive_packet_unit_orders_101(), send_packet_calendar_info_100(), send_packet_city_info_100(), send_packet_city_info_101(), send_packet_city_info_102(), send_packet_city_info_103(), send_packet_city_nationalities_100(), send_packet_city_nationalities_101(), send_packet_city_rally_point_100(), send_packet_city_rally_point_101(), send_packet_conn_ping_info_100(), send_packet_edit_city_100(), send_packet_edit_city_101(), send_packet_edit_player_100(), send_packet_endgame_player_100(), send_packet_endgame_report_100(), send_packet_game_info_100(), send_packet_nation_availability_100(), send_packet_player_info_100(), send_packet_player_multiplier_100(), send_packet_ruleset_action_auto_100(), send_packet_ruleset_action_enabler_100(), send_packet_ruleset_building_100(), send_packet_ruleset_choices_100(), send_packet_ruleset_city_100(), send_packet_ruleset_clause_100(), send_packet_ruleset_disaster_100(), send_packet_ruleset_effect_100(), send_packet_ruleset_extra_100(), send_packet_ruleset_game_100(), send_packet_ruleset_goods_100(), send_packet_ruleset_government_100(), send_packet_ruleset_multiplier_100(), send_packet_ruleset_music_100(), send_packet_ruleset_nation_100(), send_packet_ruleset_nation_groups_100(), send_packet_ruleset_nation_sets_100(), send_packet_ruleset_resource_100(), send_packet_ruleset_road_100(), send_packet_ruleset_specialist_100(), send_packet_ruleset_tech_100(), send_packet_ruleset_terrain_100(), send_packet_ruleset_unit_100(), send_packet_server_setting_bitwise_100(), send_packet_server_setting_control_100(), send_packet_server_setting_enum_100(), send_packet_unit_actions_100(), send_packet_unit_actions_101(), send_packet_unit_info_100(), send_packet_unit_info_101(), send_packet_unit_orders_100(), and send_packet_unit_orders_101().
struct plocation * plocation_field_new | ( | char * | name | ) |
Create a new address of the location of a field inside a packet.
Definition at line 1067 of file dataio_raw.c.
Referenced by receive_packet_achievement_info_100(), receive_packet_authentication_reply_100(), receive_packet_authentication_req_100(), receive_packet_calendar_info_100(), receive_packet_chat_msg_100(), receive_packet_chat_msg_req_100(), receive_packet_city_buy_100(), receive_packet_city_buy_101(), receive_packet_city_change_100(), receive_packet_city_change_101(), receive_packet_city_change_specialist_100(), receive_packet_city_change_specialist_101(), receive_packet_city_info_100(), receive_packet_city_info_101(), receive_packet_city_info_102(), receive_packet_city_info_103(), receive_packet_city_make_specialist_100(), receive_packet_city_make_specialist_101(), receive_packet_city_make_worker_100(), receive_packet_city_make_worker_101(), receive_packet_city_name_suggestion_info_100(), receive_packet_city_name_suggestion_info_101(), receive_packet_city_name_suggestion_req_100(), receive_packet_city_name_suggestion_req_101(), receive_packet_city_nationalities_100(), receive_packet_city_nationalities_101(), receive_packet_city_options_req_100(), receive_packet_city_options_req_101(), receive_packet_city_rally_point_100(), receive_packet_city_rally_point_101(), receive_packet_city_refresh_100(), receive_packet_city_refresh_101(), receive_packet_city_remove_100(), receive_packet_city_remove_101(), receive_packet_city_rename_100(), receive_packet_city_rename_101(), receive_packet_city_sabotage_list_100(), receive_packet_city_sabotage_list_101(), receive_packet_city_sell_100(), receive_packet_city_sell_101(), receive_packet_city_short_info_100(), receive_packet_city_short_info_101(), receive_packet_city_worklist_100(), receive_packet_city_worklist_101(), receive_packet_client_info_100(), receive_packet_conn_info_100(), receive_packet_conn_ping_info_100(), receive_packet_connect_msg_100(), receive_packet_diplomacy_accept_treaty_100(), receive_packet_diplomacy_accept_treaty_req_100(), receive_packet_diplomacy_cancel_meeting_100(), receive_packet_diplomacy_cancel_meeting_req_100(), receive_packet_diplomacy_cancel_pact_100(), receive_packet_diplomacy_create_clause_100(), receive_packet_diplomacy_create_clause_req_100(), receive_packet_diplomacy_init_meeting_100(), receive_packet_diplomacy_init_meeting_req_100(), receive_packet_diplomacy_remove_clause_100(), receive_packet_diplomacy_remove_clause_req_100(), receive_packet_early_chat_msg_100(), receive_packet_edit_city_100(), receive_packet_edit_city_101(), receive_packet_edit_city_create_100(), receive_packet_edit_city_remove_100(), receive_packet_edit_city_remove_101(), receive_packet_edit_game_100(), receive_packet_edit_mode_100(), receive_packet_edit_object_created_100(), receive_packet_edit_player_100(), receive_packet_edit_player_create_100(), receive_packet_edit_player_remove_100(), receive_packet_edit_player_vision_100(), receive_packet_edit_scenario_desc_100(), receive_packet_edit_startpos_100(), receive_packet_edit_startpos_full_100(), receive_packet_edit_tile_100(), receive_packet_edit_tile_extra_100(), receive_packet_edit_tile_terrain_100(), receive_packet_edit_toggle_fogofwar_100(), receive_packet_edit_unit_100(), receive_packet_edit_unit_101(), receive_packet_edit_unit_create_100(), receive_packet_edit_unit_remove_100(), receive_packet_edit_unit_remove_by_id_100(), receive_packet_edit_unit_remove_by_id_101(), receive_packet_endgame_player_100(), receive_packet_endgame_report_100(), receive_packet_game_info_100(), receive_packet_game_load_100(), receive_packet_investigate_finished_100(), receive_packet_investigate_finished_101(), receive_packet_investigate_started_100(), receive_packet_investigate_started_101(), receive_packet_map_info_100(), receive_packet_nation_availability_100(), receive_packet_nation_select_req_100(), receive_packet_new_year_100(), receive_packet_nuke_tile_info_100(), receive_packet_page_msg_100(), receive_packet_page_msg_part_100(), receive_packet_play_music_100(), receive_packet_player_attribute_chunk_100(), receive_packet_player_change_government_100(), receive_packet_player_diplstate_100(), receive_packet_player_info_100(), receive_packet_player_multiplier_100(), receive_packet_player_phase_done_100(), receive_packet_player_place_infra_100(), receive_packet_player_rates_100(), receive_packet_player_ready_100(), receive_packet_player_remove_100(), receive_packet_player_research_100(), receive_packet_player_tech_goal_100(), receive_packet_report_req_100(), receive_packet_research_info_100(), receive_packet_ruleset_achievement_100(), receive_packet_ruleset_action_100(), receive_packet_ruleset_action_auto_100(), receive_packet_ruleset_action_enabler_100(), receive_packet_ruleset_base_100(), receive_packet_ruleset_building_100(), receive_packet_ruleset_choices_100(), receive_packet_ruleset_city_100(), receive_packet_ruleset_clause_100(), receive_packet_ruleset_control_100(), receive_packet_ruleset_control_101(), receive_packet_ruleset_description_part_100(), receive_packet_ruleset_disaster_100(), receive_packet_ruleset_effect_100(), receive_packet_ruleset_extra_100(), receive_packet_ruleset_extra_flag_100(), receive_packet_ruleset_game_100(), receive_packet_ruleset_goods_100(), receive_packet_ruleset_government_100(), receive_packet_ruleset_government_ruler_title_100(), receive_packet_ruleset_multiplier_100(), receive_packet_ruleset_music_100(), receive_packet_ruleset_nation_100(), receive_packet_ruleset_nation_groups_100(), receive_packet_ruleset_nation_sets_100(), receive_packet_ruleset_resource_100(), receive_packet_ruleset_road_100(), receive_packet_ruleset_specialist_100(), receive_packet_ruleset_style_100(), receive_packet_ruleset_summary_100(), receive_packet_ruleset_tech_100(), receive_packet_ruleset_tech_class_100(), receive_packet_ruleset_tech_flag_100(), receive_packet_ruleset_terrain_100(), receive_packet_ruleset_terrain_control_100(), receive_packet_ruleset_terrain_flag_100(), receive_packet_ruleset_trade_100(), receive_packet_ruleset_unit_100(), receive_packet_ruleset_unit_bonus_100(), receive_packet_ruleset_unit_class_100(), receive_packet_ruleset_unit_class_flag_100(), receive_packet_ruleset_unit_flag_100(), receive_packet_save_scenario_100(), receive_packet_scenario_description_100(), receive_packet_scenario_info_100(), receive_packet_server_info_100(), receive_packet_server_join_reply_100(), receive_packet_server_join_req_100(), receive_packet_server_setting_bitwise_100(), receive_packet_server_setting_bool_100(), receive_packet_server_setting_const_100(), receive_packet_server_setting_control_100(), receive_packet_server_setting_enum_100(), receive_packet_server_setting_int_100(), receive_packet_server_setting_str_100(), receive_packet_set_topology_100(), receive_packet_single_want_hack_reply_100(), receive_packet_single_want_hack_req_100(), receive_packet_spaceship_info_100(), receive_packet_spaceship_place_100(), receive_packet_start_phase_100(), receive_packet_team_name_info_100(), receive_packet_tile_info_100(), receive_packet_tile_info_101(), receive_packet_timeout_info_100(), receive_packet_trade_route_info_100(), receive_packet_trade_route_info_101(), receive_packet_unit_action_answer_100(), receive_packet_unit_action_answer_101(), receive_packet_unit_action_query_100(), receive_packet_unit_action_query_101(), receive_packet_unit_actions_100(), receive_packet_unit_actions_101(), receive_packet_unit_change_activity_100(), receive_packet_unit_change_activity_101(), receive_packet_unit_combat_info_100(), receive_packet_unit_combat_info_101(), receive_packet_unit_do_action_100(), receive_packet_unit_do_action_101(), receive_packet_unit_get_actions_100(), receive_packet_unit_get_actions_101(), receive_packet_unit_info_100(), receive_packet_unit_info_101(), receive_packet_unit_orders_100(), receive_packet_unit_orders_101(), receive_packet_unit_remove_100(), receive_packet_unit_remove_101(), receive_packet_unit_server_side_agent_set_100(), receive_packet_unit_server_side_agent_set_101(), receive_packet_unit_short_info_100(), receive_packet_unit_short_info_101(), receive_packet_unit_sscs_set_100(), receive_packet_unit_sscs_set_101(), receive_packet_unit_type_upgrade_100(), receive_packet_unknown_research_100(), receive_packet_vote_new_100(), receive_packet_vote_remove_100(), receive_packet_vote_resolve_100(), receive_packet_vote_submit_100(), receive_packet_vote_update_100(), receive_packet_web_city_info_addition_100(), receive_packet_web_city_info_addition_101(), receive_packet_web_player_info_addition_100(), receive_packet_web_ruleset_unit_addition_100(), receive_packet_worker_task_100(), receive_packet_worker_task_101(), send_packet_achievement_info_100(), send_packet_authentication_reply_100(), send_packet_authentication_req_100(), send_packet_calendar_info_100(), send_packet_chat_msg_100(), send_packet_chat_msg_req_100(), send_packet_city_buy_100(), send_packet_city_buy_101(), send_packet_city_change_100(), send_packet_city_change_101(), send_packet_city_change_specialist_100(), send_packet_city_change_specialist_101(), send_packet_city_info_100(), send_packet_city_info_101(), send_packet_city_info_102(), send_packet_city_info_103(), send_packet_city_make_specialist_100(), send_packet_city_make_specialist_101(), send_packet_city_make_worker_100(), send_packet_city_make_worker_101(), send_packet_city_name_suggestion_info_100(), send_packet_city_name_suggestion_info_101(), send_packet_city_name_suggestion_req_100(), send_packet_city_name_suggestion_req_101(), send_packet_city_nationalities_100(), send_packet_city_nationalities_101(), send_packet_city_options_req_100(), send_packet_city_options_req_101(), send_packet_city_rally_point_100(), send_packet_city_rally_point_101(), send_packet_city_refresh_100(), send_packet_city_refresh_101(), send_packet_city_remove_100(), send_packet_city_remove_101(), send_packet_city_rename_100(), send_packet_city_rename_101(), send_packet_city_sabotage_list_100(), send_packet_city_sabotage_list_101(), send_packet_city_sell_100(), send_packet_city_sell_101(), send_packet_city_short_info_100(), send_packet_city_short_info_101(), send_packet_city_worklist_100(), send_packet_city_worklist_101(), send_packet_client_info_100(), send_packet_conn_info_100(), send_packet_conn_ping_info_100(), send_packet_connect_msg_100(), send_packet_diplomacy_accept_treaty_100(), send_packet_diplomacy_accept_treaty_req_100(), send_packet_diplomacy_cancel_meeting_100(), send_packet_diplomacy_cancel_meeting_req_100(), send_packet_diplomacy_cancel_pact_100(), send_packet_diplomacy_create_clause_100(), send_packet_diplomacy_create_clause_req_100(), send_packet_diplomacy_init_meeting_100(), send_packet_diplomacy_init_meeting_req_100(), send_packet_diplomacy_remove_clause_100(), send_packet_diplomacy_remove_clause_req_100(), send_packet_early_chat_msg_100(), send_packet_edit_city_100(), send_packet_edit_city_101(), send_packet_edit_city_create_100(), send_packet_edit_city_remove_100(), send_packet_edit_city_remove_101(), send_packet_edit_game_100(), send_packet_edit_mode_100(), send_packet_edit_object_created_100(), send_packet_edit_player_100(), send_packet_edit_player_create_100(), send_packet_edit_player_remove_100(), send_packet_edit_player_vision_100(), send_packet_edit_scenario_desc_100(), send_packet_edit_startpos_100(), send_packet_edit_startpos_full_100(), send_packet_edit_tile_100(), send_packet_edit_tile_extra_100(), send_packet_edit_tile_terrain_100(), send_packet_edit_toggle_fogofwar_100(), send_packet_edit_unit_100(), send_packet_edit_unit_101(), send_packet_edit_unit_create_100(), send_packet_edit_unit_remove_100(), send_packet_edit_unit_remove_by_id_100(), send_packet_edit_unit_remove_by_id_101(), send_packet_endgame_player_100(), send_packet_endgame_report_100(), send_packet_game_info_100(), send_packet_game_load_100(), send_packet_investigate_finished_100(), send_packet_investigate_finished_101(), send_packet_investigate_started_100(), send_packet_investigate_started_101(), send_packet_map_info_100(), send_packet_nation_availability_100(), send_packet_nation_select_req_100(), send_packet_new_year_100(), send_packet_nuke_tile_info_100(), send_packet_page_msg_100(), send_packet_page_msg_part_100(), send_packet_play_music_100(), send_packet_player_attribute_chunk_100(), send_packet_player_change_government_100(), send_packet_player_diplstate_100(), send_packet_player_info_100(), send_packet_player_multiplier_100(), send_packet_player_phase_done_100(), send_packet_player_place_infra_100(), send_packet_player_rates_100(), send_packet_player_ready_100(), send_packet_player_remove_100(), send_packet_player_research_100(), send_packet_player_tech_goal_100(), send_packet_report_req_100(), send_packet_research_info_100(), send_packet_ruleset_achievement_100(), send_packet_ruleset_action_100(), send_packet_ruleset_action_auto_100(), send_packet_ruleset_action_enabler_100(), send_packet_ruleset_base_100(), send_packet_ruleset_building_100(), send_packet_ruleset_choices_100(), send_packet_ruleset_city_100(), send_packet_ruleset_clause_100(), send_packet_ruleset_control_100(), send_packet_ruleset_control_101(), send_packet_ruleset_description_part_100(), send_packet_ruleset_disaster_100(), send_packet_ruleset_effect_100(), send_packet_ruleset_extra_100(), send_packet_ruleset_extra_flag_100(), send_packet_ruleset_game_100(), send_packet_ruleset_goods_100(), send_packet_ruleset_government_100(), send_packet_ruleset_government_ruler_title_100(), send_packet_ruleset_multiplier_100(), send_packet_ruleset_music_100(), send_packet_ruleset_nation_100(), send_packet_ruleset_nation_groups_100(), send_packet_ruleset_nation_sets_100(), send_packet_ruleset_resource_100(), send_packet_ruleset_road_100(), send_packet_ruleset_specialist_100(), send_packet_ruleset_style_100(), send_packet_ruleset_summary_100(), send_packet_ruleset_tech_100(), send_packet_ruleset_tech_class_100(), send_packet_ruleset_tech_flag_100(), send_packet_ruleset_terrain_100(), send_packet_ruleset_terrain_control_100(), send_packet_ruleset_terrain_flag_100(), send_packet_ruleset_trade_100(), send_packet_ruleset_unit_100(), send_packet_ruleset_unit_bonus_100(), send_packet_ruleset_unit_class_100(), send_packet_ruleset_unit_class_flag_100(), send_packet_ruleset_unit_flag_100(), send_packet_save_scenario_100(), send_packet_scenario_description_100(), send_packet_scenario_info_100(), send_packet_server_info_100(), send_packet_server_join_reply_100(), send_packet_server_join_req_100(), send_packet_server_setting_bitwise_100(), send_packet_server_setting_bool_100(), send_packet_server_setting_const_100(), send_packet_server_setting_control_100(), send_packet_server_setting_enum_100(), send_packet_server_setting_int_100(), send_packet_server_setting_str_100(), send_packet_set_topology_100(), send_packet_single_want_hack_reply_100(), send_packet_single_want_hack_req_100(), send_packet_spaceship_info_100(), send_packet_spaceship_place_100(), send_packet_start_phase_100(), send_packet_team_name_info_100(), send_packet_tile_info_100(), send_packet_tile_info_101(), send_packet_timeout_info_100(), send_packet_trade_route_info_100(), send_packet_trade_route_info_101(), send_packet_unit_action_answer_100(), send_packet_unit_action_answer_101(), send_packet_unit_action_query_100(), send_packet_unit_action_query_101(), send_packet_unit_actions_100(), send_packet_unit_actions_101(), send_packet_unit_change_activity_100(), send_packet_unit_change_activity_101(), send_packet_unit_combat_info_100(), send_packet_unit_combat_info_101(), send_packet_unit_do_action_100(), send_packet_unit_do_action_101(), send_packet_unit_get_actions_100(), send_packet_unit_get_actions_101(), send_packet_unit_info_100(), send_packet_unit_info_101(), send_packet_unit_orders_100(), send_packet_unit_orders_101(), send_packet_unit_remove_100(), send_packet_unit_remove_101(), send_packet_unit_server_side_agent_set_100(), send_packet_unit_server_side_agent_set_101(), send_packet_unit_short_info_100(), send_packet_unit_short_info_101(), send_packet_unit_sscs_set_100(), send_packet_unit_sscs_set_101(), send_packet_unit_type_upgrade_100(), send_packet_unknown_research_100(), send_packet_vote_new_100(), send_packet_vote_remove_100(), send_packet_vote_resolve_100(), send_packet_vote_submit_100(), send_packet_vote_update_100(), send_packet_web_city_info_addition_100(), send_packet_web_city_info_addition_101(), send_packet_web_player_info_addition_100(), send_packet_web_ruleset_unit_addition_100(), send_packet_worker_task_100(), and send_packet_worker_task_101().
const char * plocation_name | ( | const struct plocation * | loc | ) |
Give textual description of the location. This might return address of a static buffer next call reuses, so don't expect result to be valid over another call to this.
Definition at line 1097 of file dataio_raw.c.
|
static |
Definition at line 71 of file dataio_raw.c.
Referenced by dataio_get_conv_callback(), dio_get_string_raw(), and dio_set_get_conv_callback().
|
static |
Definition at line 70 of file dataio_raw.c.
Referenced by dio_put_string_raw(), and dio_set_put_conv_callback().