PatchworkOS  c9fea19
A non-POSIX operating system.
Loading...
Searching...
No Matches
client.h File Reference
#include "surface.h"
#include <libpatchwork/cmd.h>
#include <libpatchwork/event.h>
#include <sys/io.h>
#include <sys/list.h>
Include dependency graph for client.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  client_t
 

Macros

#define CLIENT_RECV_BUFFER_SIZE   (sizeof(cmd_buffer_t) + 128)
 

Functions

client_tclient_new (fd_t fd)
 
void client_free (client_t *client)
 
uint64_t client_receive_cmds (client_t *client)
 
uint64_t client_send_event (client_t *client, surface_id_t target, event_type_t type, void *data, uint64_t size)
 

Macro Definition Documentation

◆ CLIENT_RECV_BUFFER_SIZE

#define CLIENT_RECV_BUFFER_SIZE   (sizeof(cmd_buffer_t) + 128)

Definition at line 10 of file client.h.

Function Documentation

◆ client_new()

client_t * client_new ( fd_t  fd)

Definition at line 32 of file client.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ client_free()

void client_free ( client_t client)

Definition at line 52 of file client.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ client_receive_cmds()

uint64_t client_receive_cmds ( client_t client)

Definition at line 427 of file client.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ client_send_event()

uint64_t client_send_event ( client_t client,
surface_id_t  target,
event_type_t  type,
void *  data,
uint64_t  size 
)

Definition at line 516 of file client.c.

Here is the call graph for this function:
Here is the caller graph for this function: