source: neercs/trunk/src/client/screen.c @ 4384

Last change on this file since 4384 was 4384, checked in by Sam Hocevar, 13 years ago

Submitting empty code for later.

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 *  neercs        console-based window manager
3 *  Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
4 *                2008-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
5 *                All Rights Reserved
6 *
7 *  This program is free software. It comes without any warranty, to
8 *  the extent permitted by applicable law. You can redistribute it
9 *  and/or modify it under the terms of the Do What The Fuck You Want
10 *  To Public License, Version 2, as published by Sam Hocevar. See
11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
12 */
13
14#if defined HAVE_CONFIG_H
15#   include "config.h"
16#endif
17
18#include <stdlib.h> /* malloc(), free() */
19
20#include <caca.h>
21
22#include "client/screen.h"
23#include "client/client.h"
24#include "mini-socket.h"
25
26typedef enum nrx_type
27{
28    TYPE_TEST,
29}
30nrx_type_t;
31
32typedef enum nrx_state
33{
34    STATE_CREATED,
35    STATE_CONNECTED,
36}
37nrx_state_t;
38
39struct nrx_screen
40{
41    /* Public data */
42    caca_canvas_t *cv;
43
44    /* Private data */
45    nrx_socket_t *sock;
46    nrx_state_t state;
47    nrx_type_t type;
48};
49
50nrx_screen_t *create_screen_test(nrx_client_t *client)
51{
52    nrx_screen_t *screen = malloc(sizeof(*screen));
53
54    screen->cv = caca_create_canvas(0, 0);
55    screen->type = TYPE_TEST;
56    screen->state = STATE_CREATED;
57
58    return screen;
59}
60
61void tick_screen(nrx_screen_t *screen)
62{
63    /* TODO */;
64}
65
66caca_canvas_t *get_screen_canvas(nrx_screen_t *screen)
67{
68    return screen->cv;
69}
70
71void destroy_screen(nrx_screen_t *screen)
72{
73    /* TODO */;
74}
75
Note: See TracBrowser for help on using the repository browser.