RetroArch
|
#include <stdlib.h>
#include <sys/types.h>
#include <boolean.h>
#include <encodings/crc32.h>
#include "netplay_private.h"
Functions | |
static void | clear_input (netplay_input_state_t istate) |
bool | netplay_delta_frame_ready (netplay_t *netplay, struct delta_frame *delta, uint32_t frame) |
uint32_t | netplay_delta_frame_crc (netplay_t *netplay, struct delta_frame *delta) |
static void | free_input_state (netplay_input_state_t *list) |
void | netplay_delta_frame_free (struct delta_frame *delta) |
netplay_input_state_t | netplay_input_state_for (netplay_input_state_t *list, uint32_t client_num, size_t size, bool must_create, bool must_not_create) |
uint32_t | netplay_expected_input_size (netplay_t *netplay, uint32_t devices) |
|
static |
|
static |
uint32_t netplay_delta_frame_crc | ( | netplay_t * | netplay, |
struct delta_frame * | delta | ||
) |
netplay_delta_frame_crc
Get the CRC for the serialization of this frame.
void netplay_delta_frame_free | ( | struct delta_frame * | delta | ) |
netplay_delta_frame_free
Free a delta frame's dependencies
bool netplay_delta_frame_ready | ( | netplay_t * | netplay, |
struct delta_frame * | delta, | ||
uint32_t | frame | ||
) |
netplay_delta_frame_ready
Prepares, if possible, a delta frame for input, and reports whether it is ready.
Returns: True if the delta frame is ready for input at the given frame, false otherwise.
netplay_expected_input_size
Size in words for a given set of devices.
netplay_input_state_t netplay_input_state_for | ( | netplay_input_state_t * | list, |
uint32_t | client_num, | ||
size_t | size, | ||
bool | must_create, | ||
bool | must_not_create | ||
) |
netplay_input_state_for
Get an input state for a particular client