|
PatchworkOS
|
#include "surface.h"#include "client.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/io.h>#include <sys/list.h>Go to the source code of this file.
Functions | |
| surface_t * | surface_new (client_t *client, const char *name, const point_t *point, uint64_t width, uint64_t height, surface_type_t type) |
| void | surface_free (surface_t *surface) |
| void | surface_get_info (surface_t *surface, surface_info_t *info) |
Variables | |
| static surface_id_t | newId = 0 |
| void surface_free | ( | surface_t * | surface | ) |
Definition at line 57 of file surface.c.
References surface_t::buffer, free(), surface_t::height, munmap(), and surface_t::width.
Referenced by client_action_surface_free(), client_action_surface_new(), and client_free().
| void surface_get_info | ( | surface_t * | surface, |
| surface_info_t * | info | ||
| ) |
Definition at line 63 of file surface.c.
References surface_t::flags, surface_t::id, info, fb_info_t::name, surface_t::name, strcpy(), SURFACE_SCREEN_RECT, and surface_t::type.
Referenced by dwm_attach(), dwm_detach(), and dwm_report_produce().
| surface_t * surface_new | ( | client_t * | client, |
| const char * | name, | ||
| const point_t * | point, | ||
| uint64_t | width, | ||
| uint64_t | height, | ||
| surface_type_t | type | ||
| ) |
Definition at line 14 of file surface.c.
References surface_t::buffer, surface_t::client, surface_t::clientEntry, CLOCKS_NEVER, close(), timer_t::deadline, surface_t::dwmEntry, ENOMEM, ERR, errno, timer_t::flags, surface_t::flags, free(), surface_t::height, surface_t::id, list_entry_init(), malloc(), memset(), mmap(), surface_t::name, newId, NULL, open(), surface_t::pos, printf(), PROT_READ, PROT_WRITE, surface_t::shmem, strcpy(), timer_t::timeout, surface_t::timer, TIMER_NONE, surface_t::type, and surface_t::width.
Referenced by client_action_surface_new().
|
static |
Definition at line 12 of file surface.c.
Referenced by surface_new().