blob: bb31fa602f58f1ca02d12deef2847869abd06323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <glib.h>
#include "state.h"
State *state_create(Window *win, Drawable *draw)
{
State *state = g_malloc(sizeof(State));
g_assert_nonnull(state);
state->win = win;
state->draw = draw;
return state;
}
void state_destroy(State *state)
{
g_free(state);
}
// vim: ts=4 sw=4 et
|