mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Header include cleanups
This commit is contained in:
parent
50563d255f
commit
23612cb26f
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "netplay_private.h"
|
#include "netplay_private.h"
|
||||||
|
|
||||||
|
#include "../../command.h"
|
||||||
#include "../../movie.h"
|
#include "../../movie.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "netplay_private.h"
|
#include "netplay_private.h"
|
||||||
|
|
||||||
|
#include "../../autosave.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pre_frame:
|
* pre_frame:
|
||||||
* @netplay : pointer to netplay object
|
* @netplay : pointer to netplay object
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
#include <net/net_compat.h>
|
#include <net/net_compat.h>
|
||||||
#include <retro_endianness.h>
|
#include <retro_endianness.h>
|
||||||
|
|
||||||
#include "../../command.h"
|
|
||||||
#include "../../dynamic.h"
|
|
||||||
#include "../../msg_hash.h"
|
#include "../../msg_hash.h"
|
||||||
#include "../../system.h"
|
#include "../../system.h"
|
||||||
#include "../../runloop.h"
|
#include "../../runloop.h"
|
||||||
@ -33,10 +31,10 @@
|
|||||||
#define HAVE_IPV6
|
#define HAVE_IPV6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define UDP_FRAME_PACKETS 16
|
#define UDP_FRAME_PACKETS 16
|
||||||
#define UDP_WORDS_PER_FRAME 4 /* Allows us to send 128 bits worth of state per frame. */
|
#define UDP_WORDS_PER_FRAME 4 /* Allows us to send 128 bits worth of state per frame. */
|
||||||
#define MAX_SPECTATORS 16
|
#define MAX_SPECTATORS 16
|
||||||
#define RARCH_DEFAULT_PORT 55435
|
#define RARCH_DEFAULT_PORT 55435
|
||||||
|
|
||||||
#define PREV_PTR(x) ((x) == 0 ? netplay->buffer_size - 1 : (x) - 1)
|
#define PREV_PTR(x) ((x) == 0 ? netplay->buffer_size - 1 : (x) - 1)
|
||||||
#define NEXT_PTR(x) ((x + 1) % netplay->buffer_size)
|
#define NEXT_PTR(x) ((x + 1) % netplay->buffer_size)
|
||||||
@ -135,19 +133,30 @@ struct netplay
|
|||||||
extern void *netplay_data;
|
extern void *netplay_data;
|
||||||
|
|
||||||
struct netplay_callbacks* netplay_get_cbs_net(void);
|
struct netplay_callbacks* netplay_get_cbs_net(void);
|
||||||
|
|
||||||
struct netplay_callbacks* netplay_get_cbs_spectate(void);
|
struct netplay_callbacks* netplay_get_cbs_spectate(void);
|
||||||
|
|
||||||
void netplay_log_connection(const struct sockaddr_storage *their_addr,
|
void netplay_log_connection(const struct sockaddr_storage *their_addr,
|
||||||
unsigned slot, const char *nick);
|
unsigned slot, const char *nick);
|
||||||
|
|
||||||
bool netplay_get_nickname(netplay_t *netplay, int fd);
|
bool netplay_get_nickname(netplay_t *netplay, int fd);
|
||||||
|
|
||||||
bool netplay_send_nickname(netplay_t *netplay, int fd);
|
bool netplay_send_nickname(netplay_t *netplay, int fd);
|
||||||
|
|
||||||
bool netplay_send_info(netplay_t *netplay);
|
bool netplay_send_info(netplay_t *netplay);
|
||||||
|
|
||||||
uint32_t *netplay_bsv_header_generate(size_t *size, uint32_t magic);
|
uint32_t *netplay_bsv_header_generate(size_t *size, uint32_t magic);
|
||||||
|
|
||||||
bool netplay_bsv_parse_header(const uint32_t *header, uint32_t magic);
|
bool netplay_bsv_parse_header(const uint32_t *header, uint32_t magic);
|
||||||
|
|
||||||
uint32_t netplay_impl_magic(void);
|
uint32_t netplay_impl_magic(void);
|
||||||
|
|
||||||
bool netplay_send_info(netplay_t *netplay);
|
bool netplay_send_info(netplay_t *netplay);
|
||||||
|
|
||||||
bool netplay_get_info(netplay_t *netplay);
|
bool netplay_get_info(netplay_t *netplay);
|
||||||
|
|
||||||
bool netplay_is_server(netplay_t* netplay);
|
bool netplay_is_server(netplay_t* netplay);
|
||||||
|
|
||||||
bool netplay_is_spectate(netplay_t* netplay);
|
bool netplay_is_spectate(netplay_t* netplay);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user