mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Rename np_is_server to netplay_is_server
This commit is contained in:
parent
df3b090d7a
commit
a7d4379011
@ -311,7 +311,7 @@ bool np_get_info(netplay_t *netplay)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool np_is_server(netplay_t* netplay)
|
||||
bool netplay_is_server(netplay_t* netplay)
|
||||
{
|
||||
if (!netplay)
|
||||
return false;
|
||||
|
@ -137,7 +137,7 @@ static bool netplay_net_init_buffers(netplay_t *netplay)
|
||||
|
||||
static bool netplay_net_info_cb(netplay_t* netplay, unsigned frames)
|
||||
{
|
||||
if (np_is_server(netplay))
|
||||
if (netplay_is_server(netplay))
|
||||
{
|
||||
if (!np_send_info(netplay))
|
||||
return false;
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#ifndef __RARCH_NETPLAY_PRIVATE_H
|
||||
#define __RARCH_NETPLAY_PRIVATE_H
|
||||
|
||||
#include "netplay.h"
|
||||
|
||||
#include <net/net_compat.h>
|
||||
@ -149,6 +150,7 @@ bool np_bsv_parse_header(const uint32_t *header, uint32_t magic);
|
||||
uint32_t np_impl_magic(void);
|
||||
bool np_send_info(netplay_t *netplay);
|
||||
bool np_get_info(netplay_t *netplay);
|
||||
bool np_is_server(netplay_t* netplay);
|
||||
bool netplay_is_server(netplay_t* netplay);
|
||||
bool np_is_spectate(netplay_t* netplay);
|
||||
|
||||
#endif
|
||||
|
@ -41,7 +41,7 @@ static void netplay_spectate_pre_frame(netplay_t *netplay)
|
||||
fd_set fds;
|
||||
struct timeval tmp_tv = {0};
|
||||
|
||||
if (!np_is_server(netplay))
|
||||
if (!netplay_is_server(netplay))
|
||||
return;
|
||||
|
||||
FD_ZERO(&fds);
|
||||
@ -133,7 +133,7 @@ static void netplay_spectate_post_frame(netplay_t *netplay)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
if (!np_is_server(netplay))
|
||||
if (!netplay_is_server(netplay))
|
||||
return;
|
||||
|
||||
for (i = 0; i < MAX_SPECTATORS; i++)
|
||||
@ -165,7 +165,7 @@ static void netplay_spectate_post_frame(netplay_t *netplay)
|
||||
static bool netplay_spectate_info_cb(netplay_t *netplay, unsigned frames)
|
||||
{
|
||||
unsigned i;
|
||||
if(np_is_server(netplay))
|
||||
if(netplay_is_server(netplay))
|
||||
{
|
||||
if(!np_get_info(netplay))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user