42 lines
773 B
C
42 lines
773 B
C
#ifndef COMMON_REQUEST_GET_WORLD_DATA_H
|
|
#define COMMON_REQUEST_GET_WORLD_DATA_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "../world.h"
|
|
|
|
struct request_body_get_world_data_t {
|
|
size_t world_id;
|
|
};
|
|
|
|
|
|
enum error_t request_body_get_world_data_serialise(
|
|
struct request_body_get_world_data_t const *,
|
|
struct json_t **
|
|
);
|
|
|
|
|
|
enum error_t request_body_get_world_data_deserialise(
|
|
struct request_body_get_world_data_t *,
|
|
struct json_t *
|
|
);
|
|
|
|
|
|
struct response_body_get_world_data_t {
|
|
struct world_t world;
|
|
};
|
|
|
|
|
|
enum error_t response_body_get_world_data_serialise(
|
|
struct response_body_get_world_data_t const *,
|
|
struct json_t **
|
|
);
|
|
|
|
|
|
enum error_t response_body_get_world_data_deserialise(
|
|
struct response_body_get_world_data_t *,
|
|
struct json_t *
|
|
);
|
|
|
|
#endif
|