mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
d/remote: Tidy and comment
This commit is contained in:
parent
7990ca9208
commit
9932e75db6
|
@ -64,7 +64,7 @@ DEBUG_GET_ONCE_LOG_OPTION(remote_log, "REMOTE_LOG", U_LOGGING_INFO)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
static int
|
||||||
setup_accept_fd(struct r_hub *r)
|
setup_accept_fd(struct r_hub *r)
|
||||||
{
|
{
|
||||||
struct sockaddr_in server_address = {0};
|
struct sockaddr_in server_address = {0};
|
||||||
|
@ -133,7 +133,7 @@ wait_for_read_and_to_continue(struct r_hub *r, int socket)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
do_accept(struct r_hub *r)
|
do_accept(struct r_hub *r)
|
||||||
{
|
{
|
||||||
struct sockaddr_in addr = {0};
|
struct sockaddr_in addr = {0};
|
||||||
|
@ -198,7 +198,7 @@ read_one(struct r_hub *r, struct r_remote_data *data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
static void *
|
||||||
run_thread(void *ptr)
|
run_thread(void *ptr)
|
||||||
{
|
{
|
||||||
struct r_hub *r = (struct r_hub *)ptr;
|
struct r_hub *r = (struct r_hub *)ptr;
|
||||||
|
@ -239,7 +239,7 @@ run_thread(void *ptr)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
r_hub_destroy(struct xrt_system_devices *xsysd)
|
r_hub_destroy(struct xrt_system_devices *xsysd)
|
||||||
{
|
{
|
||||||
struct r_hub *r = (struct r_hub *)xsysd;
|
struct r_hub *r = (struct r_hub *)xsysd;
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "r_interface.h"
|
#include "r_interface.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,7 +47,7 @@ struct r_hub
|
||||||
//! The latest data received.
|
//! The latest data received.
|
||||||
struct r_remote_data latest;
|
struct r_remote_data latest;
|
||||||
|
|
||||||
|
//! Incoming connection socket.
|
||||||
int accept_fd;
|
int accept_fd;
|
||||||
|
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
|
|
Loading…
Reference in a new issue