Freeciv-3.1
|
Go to the source code of this file.
Data Structures | |
struct | json_data_out |
Macros | |
#define | DIO_BV_GET(pdin, location, bv) |
#define | DIO_GET(f, d, l, ...) dio_get_##f##_json(pc, d, l, ## __VA_ARGS__) |
#define | DIO_BV_PUT(pdout, location, bv) dio_put_memory_json((pdout), location, (bv).vec, sizeof((bv).vec)) |
#define | DIO_PUT(f, d, l, ...) dio_put_##f##_json(d, l, ## __VA_ARGS__) |
Functions | |
bool | dio_get_type_json (struct data_in *din, enum data_type type, int *dest) fc__attribute((nonnull(3))) |
bool | dio_get_uint8_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_uint16_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_uint32_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_sint8_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_sint16_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_sint32_json (struct connection *pc, struct data_in *din, const struct plocation *location, int *dest) |
bool | dio_get_bool8_json (struct connection *pc, struct data_in *din, const struct plocation *location, bool *dest) |
bool | dio_get_bool32_json (struct connection *pc, struct data_in *din, const struct plocation *location, bool *dest) |
bool | dio_get_ufloat_json (struct connection *pc, struct data_in *din, const struct plocation *location, float *dest, int float_factor) |
bool | dio_get_sfloat_json (struct connection *pc, struct data_in *din, const struct plocation *location, float *dest, int float_factor) |
bool | dio_get_memory_json (struct connection *pc, struct data_in *din, struct plocation *location, void *dest, size_t dest_size) |
bool | dio_get_string_json (struct connection *pc, struct data_in *din, const struct plocation *location, char *dest, size_t max_dest_size) |
bool | dio_get_estring_json (struct connection *pc, struct data_in *din, const struct plocation *location, char *dest, size_t max_dest_size) |
bool | dio_get_cm_parameter_json (struct connection *pc, struct data_in *din, struct plocation *location, struct cm_parameter *param) |
bool | dio_get_worklist_json (struct connection *pc, struct data_in *din, struct plocation *location, struct worklist *pwl) |
bool | dio_get_unit_order_json (struct connection *pc, struct data_in *din, struct plocation *location, struct unit_order *order) |
bool | dio_get_requirement_json (struct connection *pc, struct data_in *din, const struct plocation *location, struct requirement *preq) |
bool | dio_get_action_probability_json (struct connection *pc, struct data_in *din, const struct plocation *location, struct act_prob *prob) |
bool | dio_get_uint8_vec8_json (struct connection *pc, struct data_in *din, const struct plocation *location, int **values, int stop_value) |
bool | dio_get_uint16_vec8_json (struct connection *pc, struct data_in *din, const struct plocation *location, int **values, int stop_value) |
void | dio_put_farray_json (struct json_data_out *dout, const struct plocation *location, int size) |
void | dio_put_type_json (struct json_data_out *dout, enum data_type type, const struct plocation *location, int value) |
void | dio_put_uint8_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_sint8_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_uint16_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_sint16_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_uint32_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_sint32_json (struct json_data_out *dout, const struct plocation *location, int value) |
void | dio_put_bool8_json (struct json_data_out *dout, const struct plocation *location, bool value) |
void | dio_put_bool32_json (struct json_data_out *dout, const struct plocation *location, bool value) |
void | dio_put_ufloat_json (struct json_data_out *dout, const struct plocation *location, float value, int float_factor) |
void | dio_put_sfloat_json (struct json_data_out *dout, const struct plocation *location, float value, int float_factor) |
void | dio_put_memory_json (struct json_data_out *dout, struct plocation *location, const void *value, size_t size) |
void | dio_put_string_json (struct json_data_out *dout, const struct plocation *location, const char *value) |
void | dio_put_estring_json (struct json_data_out *dout, const struct plocation *location, const char *value) |
void | dio_put_cm_parameter_json (struct json_data_out *dout, struct plocation *location, const struct cm_parameter *order) |
void | dio_put_unit_order_json (struct json_data_out *dout, struct plocation *location, const struct unit_order *order) |
void | dio_put_worklist_json (struct json_data_out *dout, struct plocation *location, const struct worklist *pwl) |
void | dio_put_requirement_json (struct json_data_out *dout, const struct plocation *location, const struct requirement *preq) |
void | dio_put_action_probability_json (struct json_data_out *dout, const struct plocation *location, const struct act_prob *prob) |
void | dio_put_uint8_vec8_json (struct json_data_out *dout, const struct plocation *location, int *values, int stop_value) |
void | dio_put_uint16_vec8_json (struct json_data_out *dout, const struct plocation *location, int *values, int stop_value) |
#define DIO_BV_GET | ( | pdin, | |
location, | |||
bv | |||
) |
Definition at line 100 of file dataio_json.h.
#define DIO_BV_PUT | ( | pdout, | |
location, | |||
bv | |||
) | dio_put_memory_json((pdout), location, (bv).vec, sizeof((bv).vec)) |
Definition at line 171 of file dataio_json.h.
#define DIO_GET | ( | f, | |
d, | |||
l, | |||
... | |||
) | dio_get_##f##_json(pc, d, l, ## __VA_ARGS__) |
Definition at line 104 of file dataio_json.h.
#define DIO_PUT | ( | f, | |
d, | |||
l, | |||
... | |||
) | dio_put_##f##_json(d, l, ## __VA_ARGS__) |
Definition at line 174 of file dataio_json.h.
bool dio_get_action_probability_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
struct act_prob * | prob | ||
) |
bool dio_get_bool32_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
bool * | dest | ||
) |
bool dio_get_bool8_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
bool * | dest | ||
) |
bool dio_get_cm_parameter_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
struct plocation * | location, | ||
struct cm_parameter * | param | ||
) |
bool dio_get_estring_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
char * | dest, | ||
size_t | max_dest_size | ||
) |
bool dio_get_memory_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
struct plocation * | location, | ||
void * | dest, | ||
size_t | dest_size | ||
) |
bool dio_get_requirement_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
struct requirement * | preq | ||
) |
bool dio_get_sfloat_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
float * | dest, | ||
int | float_factor | ||
) |
bool dio_get_sint16_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_sint32_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_sint8_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_string_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
char * | dest, | ||
size_t | max_dest_size | ||
) |
bool dio_get_ufloat_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
float * | dest, | ||
int | float_factor | ||
) |
bool dio_get_uint16_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_uint16_vec8_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int ** | values, | ||
int | stop_value | ||
) |
bool dio_get_uint32_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_uint8_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int * | dest | ||
) |
bool dio_get_uint8_vec8_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
const struct plocation * | location, | ||
int ** | values, | ||
int | stop_value | ||
) |
bool dio_get_unit_order_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
struct plocation * | location, | ||
struct unit_order * | order | ||
) |
bool dio_get_worklist_json | ( | struct connection * | pc, |
struct data_in * | din, | ||
struct plocation * | location, | ||
struct worklist * | pwl | ||
) |
void dio_put_action_probability_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
const struct act_prob * | prob | ||
) |
void dio_put_bool32_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
bool | value | ||
) |
void dio_put_bool8_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
bool | value | ||
) |
void dio_put_cm_parameter_json | ( | struct json_data_out * | dout, |
struct plocation * | location, | ||
const struct cm_parameter * | order | ||
) |
void dio_put_estring_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
const char * | value | ||
) |
void dio_put_farray_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | size | ||
) |
void dio_put_memory_json | ( | struct json_data_out * | dout, |
struct plocation * | location, | ||
const void * | value, | ||
size_t | size | ||
) |
void dio_put_requirement_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
const struct requirement * | preq | ||
) |
void dio_put_sfloat_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
float | value, | ||
int | float_factor | ||
) |
void dio_put_sint16_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_sint32_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_sint8_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_string_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
const char * | value | ||
) |
void dio_put_type_json | ( | struct json_data_out * | dout, |
enum data_type | type, | ||
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_ufloat_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
float | value, | ||
int | float_factor | ||
) |
void dio_put_uint16_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_uint16_vec8_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int * | values, | ||
int | stop_value | ||
) |
void dio_put_uint32_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_uint8_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int | value | ||
) |
void dio_put_uint8_vec8_json | ( | struct json_data_out * | dout, |
const struct plocation * | location, | ||
int * | values, | ||
int | stop_value | ||
) |
void dio_put_unit_order_json | ( | struct json_data_out * | dout, |
struct plocation * | location, | ||
const struct unit_order * | order | ||
) |
void dio_put_worklist_json | ( | struct json_data_out * | dout, |
struct plocation * | location, | ||
const struct worklist * | pwl | ||
) |