|
PatchworkOS
|
#include "surface.h"#include <libpatchwork/cmd.h>#include <libpatchwork/event.h>#include <sys/io.h>#include <sys/list.h>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_t * | client_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) |
| #define CLIENT_RECV_BUFFER_SIZE (sizeof(cmd_buffer_t) + 128) |
| void client_free | ( | client_t * | client | ) |
Definition at line 52 of file client.c.
References surface_t::clientEntry, close(), compositor_invalidate(), dwm_detach(), client_t::fd, free(), LIST_FOR_EACH_SAFE, list_remove(), screenRect, surface_free(), SURFACE_SCREEN_RECT, and client_t::surfaces.
Referenced by dwm_client_disconnect().
Definition at line 32 of file client.c.
References client_t::bitmask, ENOMEM, client_t::entry, errno, client_t::fd, list_entry_init(), list_init(), malloc(), NULL, client_t::surfaces, and UINT64_MAX.
Referenced by dwm_client_accept().
Definition at line 427 of file client.c.
References client_process_cmds(), CLIENT_RECV_BUFFER_SIZE, EMSGSIZE, EOK, EPIPE, ERR, errno, EWOULDBLOCK, client_t::fd, memmove(), perror(), printf(), read(), client_t::recvBuffer, client_t::recvLen, and cmd_buffer_t::size.
Referenced by dwm_update().
| 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.
References client_t::bitmask, client_send_all(), data, ERR, client_t::fd, memcpy(), and event_t::type.
Referenced by client_action_screen_info(), client_action_surface_new(), dwm_handle_mouse_event(), dwm_kbd_read(), dwm_poll(), dwm_report_produce(), and dwm_send_event_to_all().