2008-12-19 21:47:53 +03:00
|
|
|
/*
|
|
|
|
* Copyright © 2008 Kristian Høgsberg
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WAYLAND_SYSTEM_COMPOSITOR_H_
|
|
|
|
#define _WAYLAND_SYSTEM_COMPOSITOR_H_
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
#include <libudev.h>
|
2011-02-13 21:00:51 +03:00
|
|
|
#include <pixman.h>
|
2010-08-10 22:12:05 +04:00
|
|
|
#include "wayland-server.h"
|
2010-06-11 20:56:24 +04:00
|
|
|
#include "wayland-util.h"
|
|
|
|
|
2010-08-09 22:43:33 +04:00
|
|
|
#include <GLES2/gl2.h>
|
|
|
|
#include <GLES2/gl2ext.h>
|
2010-06-11 20:56:24 +04:00
|
|
|
#include <EGL/egl.h>
|
|
|
|
#include <EGL/eglext.h>
|
|
|
|
|
|
|
|
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
|
|
|
|
|
2011-04-26 11:21:13 +04:00
|
|
|
#define FD_TO_EGL_NATIVE_DPY(fd) ((EGLNativeDisplayType)(intptr_t)(fd))
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_matrix {
|
|
|
|
GLfloat d[16];
|
|
|
|
};
|
|
|
|
|
2011-05-02 21:53:45 +04:00
|
|
|
void
|
|
|
|
wlsc_matrix_init(struct wlsc_matrix *matrix);
|
|
|
|
void
|
|
|
|
wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z);
|
|
|
|
void
|
|
|
|
wlsc_matrix_translate(struct wlsc_matrix *matrix,
|
|
|
|
GLfloat x, GLfloat y, GLfloat z);
|
|
|
|
|
2011-05-02 22:35:40 +04:00
|
|
|
struct wlsc_transform {
|
|
|
|
struct wlsc_matrix matrix;
|
|
|
|
struct wlsc_matrix inverse;
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_surface;
|
2011-05-06 22:04:21 +04:00
|
|
|
struct wlsc_input_device;
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-06-21 19:16:58 +04:00
|
|
|
struct wlsc_mode {
|
|
|
|
uint32_t flags;
|
|
|
|
int32_t width, height;
|
|
|
|
uint32_t refresh;
|
|
|
|
struct wl_list link;
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_output {
|
2010-12-02 01:07:41 +03:00
|
|
|
struct wl_object object;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wl_list link;
|
|
|
|
struct wlsc_compositor *compositor;
|
|
|
|
struct wlsc_surface *background;
|
|
|
|
struct wlsc_matrix matrix;
|
2011-06-21 19:16:58 +04:00
|
|
|
int32_t x, y, mm_width, mm_height;
|
2011-02-13 21:00:51 +03:00
|
|
|
pixman_region32_t previous_damage_region;
|
2011-03-15 17:08:41 +03:00
|
|
|
uint32_t flags;
|
2011-03-14 14:07:26 +03:00
|
|
|
int repaint_needed;
|
|
|
|
int finished;
|
2011-03-11 18:39:20 +03:00
|
|
|
|
2011-06-21 19:16:58 +04:00
|
|
|
char *make, *model;
|
|
|
|
uint32_t subpixel;
|
|
|
|
|
|
|
|
struct wlsc_mode *current;
|
|
|
|
struct wl_list mode_list;
|
|
|
|
|
2011-03-11 18:39:20 +03:00
|
|
|
int (*prepare_render)(struct wlsc_output *output);
|
2011-03-14 14:07:26 +03:00
|
|
|
int (*present)(struct wlsc_output *output);
|
2011-04-20 19:06:13 +04:00
|
|
|
int (*prepare_scanout_surface)(struct wlsc_output *output,
|
|
|
|
struct wlsc_surface *es);
|
2011-04-20 13:02:58 +04:00
|
|
|
int (*set_hardware_cursor)(struct wlsc_output *output,
|
2011-05-06 22:04:21 +04:00
|
|
|
struct wlsc_input_device *input);
|
2010-06-11 20:56:24 +04:00
|
|
|
};
|
|
|
|
|
2010-08-17 00:08:12 +04:00
|
|
|
enum wlsc_pointer_type {
|
|
|
|
WLSC_POINTER_BOTTOM_LEFT,
|
|
|
|
WLSC_POINTER_BOTTOM_RIGHT,
|
|
|
|
WLSC_POINTER_BOTTOM,
|
|
|
|
WLSC_POINTER_DRAGGING,
|
|
|
|
WLSC_POINTER_LEFT_PTR,
|
|
|
|
WLSC_POINTER_LEFT,
|
|
|
|
WLSC_POINTER_RIGHT,
|
|
|
|
WLSC_POINTER_TOP_LEFT,
|
|
|
|
WLSC_POINTER_TOP_RIGHT,
|
|
|
|
WLSC_POINTER_TOP,
|
|
|
|
WLSC_POINTER_IBEAM,
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_input_device {
|
2010-12-02 01:07:41 +03:00
|
|
|
struct wl_input_device input_device;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_surface *sprite;
|
2010-08-16 18:38:29 +04:00
|
|
|
int32_t hotspot_x, hotspot_y;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wl_list link;
|
2010-08-05 07:21:41 +04:00
|
|
|
uint32_t modifier_state;
|
2011-01-18 17:08:53 +03:00
|
|
|
struct wl_selection *selection;
|
2010-06-11 20:56:24 +04:00
|
|
|
};
|
|
|
|
|
2011-04-20 13:02:58 +04:00
|
|
|
struct wlsc_sprite {
|
|
|
|
GLuint texture;
|
|
|
|
EGLImageKHR image;
|
|
|
|
struct wl_visual *visual;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
};
|
|
|
|
|
2011-04-22 22:23:51 +04:00
|
|
|
struct wlsc_shader {
|
|
|
|
GLuint program;
|
|
|
|
GLuint vertex_shader, fragment_shader;
|
|
|
|
GLuint proj_uniform;
|
|
|
|
GLuint tex_uniform;
|
|
|
|
GLuint color_uniform;
|
|
|
|
};
|
|
|
|
|
2011-04-22 23:38:14 +04:00
|
|
|
struct wlsc_animation {
|
|
|
|
void (*frame)(struct wlsc_animation *animation,
|
|
|
|
struct wlsc_output *output, uint32_t msecs);
|
|
|
|
struct wl_list link;
|
|
|
|
};
|
|
|
|
|
2011-05-02 22:38:18 +04:00
|
|
|
struct wlsc_spring {
|
2011-04-22 23:38:14 +04:00
|
|
|
double k;
|
2011-05-02 21:38:03 +04:00
|
|
|
double friction;
|
2011-04-22 23:38:14 +04:00
|
|
|
double current;
|
|
|
|
double target;
|
|
|
|
double previous;
|
|
|
|
uint32_t timestamp;
|
|
|
|
};
|
|
|
|
|
2011-04-23 21:04:11 +04:00
|
|
|
struct wlsc_shell {
|
|
|
|
void (*lock)(struct wlsc_shell *shell);
|
|
|
|
void (*attach)(struct wlsc_shell *shell, struct wlsc_surface *surface);
|
2011-05-03 06:09:20 +04:00
|
|
|
void (*set_selection_focus)(struct wlsc_shell *shell,
|
|
|
|
struct wl_selection *selection,
|
|
|
|
struct wl_surface *surface, uint32_t time);
|
2011-04-23 21:04:11 +04:00
|
|
|
};
|
|
|
|
|
2011-04-22 22:01:18 +04:00
|
|
|
enum {
|
|
|
|
WLSC_COMPOSITOR_ACTIVE,
|
|
|
|
WLSC_COMPOSITOR_SLEEPING
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_compositor {
|
2010-12-02 01:07:41 +03:00
|
|
|
struct wl_compositor compositor;
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-03-08 13:32:57 +03:00
|
|
|
struct wl_shm *shm;
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
EGLDisplay display;
|
|
|
|
EGLContext context;
|
2011-02-18 19:04:24 +03:00
|
|
|
EGLConfig config;
|
2011-02-13 21:44:55 +03:00
|
|
|
GLuint fbo;
|
2010-06-11 20:56:24 +04:00
|
|
|
GLuint proj_uniform, tex_uniform;
|
2011-04-20 13:02:58 +04:00
|
|
|
struct wlsc_sprite **pointer_sprites;
|
2011-04-22 22:23:51 +04:00
|
|
|
struct wlsc_shader texture_shader;
|
|
|
|
struct wlsc_shader solid_shader;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wl_display *wl_display;
|
|
|
|
|
2011-04-23 21:04:11 +04:00
|
|
|
struct wlsc_shell *shell;
|
2010-08-05 06:44:55 +04:00
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
/* There can be more than one, but not right now... */
|
2010-12-08 17:48:52 +03:00
|
|
|
struct wl_input_device *input_device;
|
2010-06-11 20:56:24 +04:00
|
|
|
|
|
|
|
struct wl_list output_list;
|
|
|
|
struct wl_list input_device_list;
|
|
|
|
struct wl_list surface_list;
|
2011-04-11 21:58:13 +04:00
|
|
|
struct wl_list binding_list;
|
2011-04-22 23:38:14 +04:00
|
|
|
struct wl_list animation_list;
|
|
|
|
struct {
|
2011-05-02 22:38:18 +04:00
|
|
|
struct wlsc_spring spring;
|
2011-04-22 23:38:14 +04:00
|
|
|
struct wlsc_animation animation;
|
|
|
|
} fade;
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-04-22 22:01:18 +04:00
|
|
|
uint32_t state;
|
|
|
|
struct wl_event_source *idle_source;
|
|
|
|
uint32_t idle_inhibit;
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
/* Repaint state. */
|
|
|
|
struct wl_event_source *timer_source;
|
|
|
|
int repaint_on_timeout;
|
|
|
|
struct timespec previous_swap;
|
2011-02-13 21:00:51 +03:00
|
|
|
pixman_region32_t damage_region;
|
2011-02-14 18:39:54 +03:00
|
|
|
struct wl_array vertices, indices;
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-04-13 06:23:30 +04:00
|
|
|
struct wlsc_surface *overlay;
|
2011-02-07 00:54:59 +03:00
|
|
|
struct wlsc_switcher *switcher;
|
2010-07-07 17:51:11 +04:00
|
|
|
uint32_t focus;
|
2010-06-14 19:54:00 +04:00
|
|
|
|
2011-04-25 23:08:20 +04:00
|
|
|
PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC
|
|
|
|
image_target_renderbuffer_storage;
|
|
|
|
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC image_target_texture_2d;
|
|
|
|
PFNEGLCREATEIMAGEKHRPROC create_image;
|
|
|
|
PFNEGLDESTROYIMAGEKHRPROC destroy_image;
|
|
|
|
PFNEGLBINDWAYLANDDISPLAYWL bind_display;
|
|
|
|
PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display;
|
|
|
|
int has_bind_display;
|
|
|
|
|
2010-12-02 00:52:15 +03:00
|
|
|
void (*destroy)(struct wlsc_compositor *ec);
|
2010-08-10 06:11:47 +04:00
|
|
|
int (*authenticate)(struct wlsc_compositor *c, uint32_t id);
|
2011-04-20 13:02:58 +04:00
|
|
|
EGLImageKHR (*create_cursor_image)(struct wlsc_compositor *c,
|
|
|
|
int32_t width, int32_t height);
|
2010-06-11 20:56:24 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#define MODIFIER_CTRL (1 << 8)
|
|
|
|
#define MODIFIER_ALT (1 << 9)
|
2010-08-05 07:21:41 +04:00
|
|
|
#define MODIFIER_SUPER (1 << 10)
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-02-18 18:51:37 +03:00
|
|
|
enum wlsc_output_flags {
|
|
|
|
WL_OUTPUT_FLIPPED = 0x01
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_vector {
|
|
|
|
GLfloat f[4];
|
|
|
|
};
|
|
|
|
|
2011-01-28 23:18:33 +03:00
|
|
|
enum wlsc_surface_map_type {
|
|
|
|
WLSC_SURFACE_MAP_UNMAPPED,
|
|
|
|
WLSC_SURFACE_MAP_TOPLEVEL,
|
|
|
|
WLSC_SURFACE_MAP_TRANSIENT,
|
|
|
|
WLSC_SURFACE_MAP_FULLSCREEN
|
|
|
|
};
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_surface {
|
2010-12-02 01:07:41 +03:00
|
|
|
struct wl_surface surface;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wlsc_compositor *compositor;
|
2011-04-20 13:02:58 +04:00
|
|
|
GLuint texture, saved_texture;
|
2010-08-05 06:44:55 +04:00
|
|
|
int32_t x, y, width, height;
|
2011-04-25 21:44:47 +04:00
|
|
|
int32_t pitch;
|
2011-01-28 23:18:33 +03:00
|
|
|
int32_t saved_x, saved_y;
|
2010-06-11 20:56:24 +04:00
|
|
|
struct wl_list link;
|
2011-03-07 20:04:59 +03:00
|
|
|
struct wl_list buffer_link;
|
2011-05-02 22:35:40 +04:00
|
|
|
struct wlsc_transform *transform;
|
2010-08-09 22:43:33 +04:00
|
|
|
struct wl_visual *visual;
|
2011-03-14 14:07:26 +03:00
|
|
|
struct wlsc_output *output;
|
2011-01-28 23:18:33 +03:00
|
|
|
enum wlsc_surface_map_type map_type;
|
|
|
|
struct wlsc_output *fullscreen_output;
|
2011-04-10 18:49:52 +04:00
|
|
|
|
|
|
|
EGLImageKHR image;
|
2010-06-11 20:56:24 +04:00
|
|
|
};
|
|
|
|
|
2011-04-22 23:38:14 +04:00
|
|
|
void
|
2011-05-02 22:38:18 +04:00
|
|
|
wlsc_spring_init(struct wlsc_spring *spring,
|
|
|
|
double k, double current, double target);
|
2011-04-22 23:38:14 +04:00
|
|
|
void
|
2011-05-02 22:38:18 +04:00
|
|
|
wlsc_spring_update(struct wlsc_spring *spring, uint32_t msec);
|
2011-04-22 23:38:14 +04:00
|
|
|
int
|
2011-05-02 22:38:18 +04:00
|
|
|
wlsc_spring_done(struct wlsc_spring *spring);
|
2011-04-22 23:38:14 +04:00
|
|
|
|
2011-04-13 01:42:30 +04:00
|
|
|
void
|
|
|
|
wlsc_surface_activate(struct wlsc_surface *surface,
|
|
|
|
struct wlsc_input_device *device, uint32_t time);
|
|
|
|
|
2008-12-19 21:47:53 +03:00
|
|
|
void
|
2010-12-08 17:48:52 +03:00
|
|
|
notify_motion(struct wl_input_device *device,
|
2010-07-21 01:06:19 +04:00
|
|
|
uint32_t time, int x, int y);
|
2008-12-19 21:47:53 +03:00
|
|
|
void
|
2010-12-08 17:48:52 +03:00
|
|
|
notify_button(struct wl_input_device *device,
|
2010-07-21 01:06:19 +04:00
|
|
|
uint32_t time, int32_t button, int32_t state);
|
2008-12-19 21:47:53 +03:00
|
|
|
void
|
2010-12-08 17:48:52 +03:00
|
|
|
notify_key(struct wl_input_device *device,
|
2010-07-21 01:06:19 +04:00
|
|
|
uint32_t time, uint32_t key, uint32_t state);
|
2008-12-19 21:47:53 +03:00
|
|
|
|
2011-01-27 04:35:07 +03:00
|
|
|
void
|
|
|
|
notify_pointer_focus(struct wl_input_device *device,
|
|
|
|
uint32_t time,
|
|
|
|
struct wlsc_output *output,
|
|
|
|
int32_t x, int32_t y);
|
|
|
|
|
2011-01-27 19:57:19 +03:00
|
|
|
void
|
|
|
|
notify_keyboard_focus(struct wl_input_device *device,
|
|
|
|
uint32_t time, struct wlsc_output *output,
|
|
|
|
struct wl_array *keys);
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
void
|
2011-03-14 14:07:26 +03:00
|
|
|
wlsc_output_finish_frame(struct wlsc_output *output, int msecs);
|
2010-07-07 17:51:11 +04:00
|
|
|
void
|
2011-04-22 22:01:18 +04:00
|
|
|
wlsc_output_damage(struct wlsc_output *output);
|
|
|
|
void
|
2010-07-07 17:51:11 +04:00
|
|
|
wlsc_compositor_schedule_repaint(struct wlsc_compositor *compositor);
|
2011-04-22 22:01:18 +04:00
|
|
|
void
|
2011-04-22 23:38:14 +04:00
|
|
|
wlsc_compositor_fade(struct wlsc_compositor *compositor, float tint);
|
|
|
|
void
|
2011-04-22 22:01:18 +04:00
|
|
|
wlsc_compositor_damage_all(struct wlsc_compositor *compositor);
|
|
|
|
void
|
|
|
|
wlsc_compositor_unlock(struct wlsc_compositor *compositor);
|
|
|
|
void
|
|
|
|
wlsc_compositor_wake(struct wlsc_compositor *compositor);
|
2010-06-11 20:56:24 +04:00
|
|
|
|
2011-04-11 21:58:13 +04:00
|
|
|
struct wlsc_binding;
|
2011-04-13 01:22:49 +04:00
|
|
|
typedef void (*wlsc_binding_handler_t)(struct wl_input_device *device,
|
2011-04-11 21:58:13 +04:00
|
|
|
uint32_t time, uint32_t key,
|
2011-04-13 01:22:49 +04:00
|
|
|
uint32_t button,
|
2011-04-11 21:58:13 +04:00
|
|
|
uint32_t state, void *data);
|
|
|
|
struct wlsc_binding *
|
|
|
|
wlsc_compositor_add_binding(struct wlsc_compositor *compositor,
|
2011-04-13 01:22:49 +04:00
|
|
|
uint32_t key, uint32_t button, uint32_t modifier,
|
2011-04-11 21:58:13 +04:00
|
|
|
wlsc_binding_handler_t binding, void *data);
|
|
|
|
void
|
|
|
|
wlsc_binding_destroy(struct wlsc_binding *binding);
|
|
|
|
|
2011-04-20 13:02:58 +04:00
|
|
|
struct wlsc_surface *
|
|
|
|
wlsc_surface_create(struct wlsc_compositor *compositor,
|
|
|
|
int32_t x, int32_t y, int32_t width, int32_t height);
|
2011-04-11 21:58:13 +04:00
|
|
|
|
2011-03-14 14:07:26 +03:00
|
|
|
void
|
|
|
|
wlsc_surface_assign_output(struct wlsc_surface *surface);
|
|
|
|
|
2011-02-13 21:00:51 +03:00
|
|
|
void
|
|
|
|
wlsc_surface_damage(struct wlsc_surface *surface);
|
|
|
|
|
|
|
|
void
|
|
|
|
wlsc_surface_damage_rectangle(struct wlsc_surface *surface,
|
|
|
|
int32_t x, int32_t y,
|
|
|
|
int32_t width, int32_t height);
|
|
|
|
|
2011-01-18 15:53:49 +03:00
|
|
|
void
|
|
|
|
wlsc_input_device_set_pointer_image(struct wlsc_input_device *device,
|
|
|
|
enum wlsc_pointer_type type);
|
|
|
|
struct wlsc_surface *
|
|
|
|
pick_surface(struct wl_input_device *device, int32_t *sx, int32_t *sy);
|
|
|
|
|
|
|
|
uint32_t
|
2011-04-23 21:04:11 +04:00
|
|
|
wlsc_compositor_get_time(void);
|
2011-01-18 15:53:49 +03:00
|
|
|
|
2010-06-14 19:54:00 +04:00
|
|
|
int
|
|
|
|
wlsc_compositor_init(struct wlsc_compositor *ec, struct wl_display *display);
|
|
|
|
void
|
2011-03-15 17:08:41 +03:00
|
|
|
wlsc_output_move(struct wlsc_output *output, int x, int y);
|
|
|
|
void
|
2010-06-14 19:54:00 +04:00
|
|
|
wlsc_output_init(struct wlsc_output *output, struct wlsc_compositor *c,
|
2011-02-18 18:51:37 +03:00
|
|
|
int x, int y, int width, int height, uint32_t flags);
|
2011-03-15 17:08:41 +03:00
|
|
|
void
|
|
|
|
wlsc_output_destroy(struct wlsc_output *output);
|
|
|
|
|
2010-06-14 19:54:00 +04:00
|
|
|
void
|
|
|
|
wlsc_input_device_init(struct wlsc_input_device *device,
|
|
|
|
struct wlsc_compositor *ec);
|
|
|
|
|
2011-04-13 01:42:30 +04:00
|
|
|
void
|
|
|
|
wlsc_switcher_init(struct wlsc_compositor *compositor);
|
|
|
|
|
2011-01-14 22:45:42 +03:00
|
|
|
void
|
|
|
|
evdev_input_add_devices(struct wlsc_compositor *c, struct udev *udev);
|
|
|
|
|
2011-05-06 23:15:37 +04:00
|
|
|
enum {
|
|
|
|
TTY_ENTER_VT,
|
|
|
|
TTY_LEAVE_VT
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef void (*tty_vt_func_t)(struct wlsc_compositor *compositor, int event);
|
|
|
|
|
2011-01-14 22:59:13 +03:00
|
|
|
struct tty *
|
2011-05-06 23:15:37 +04:00
|
|
|
tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func);
|
2011-01-14 22:59:13 +03:00
|
|
|
|
|
|
|
void
|
|
|
|
tty_destroy(struct tty *tty);
|
|
|
|
|
2010-06-11 20:56:24 +04:00
|
|
|
void
|
|
|
|
screenshooter_create(struct wlsc_compositor *ec);
|
|
|
|
|
2011-01-26 22:37:07 +03:00
|
|
|
uint32_t *
|
2011-04-23 23:03:15 +04:00
|
|
|
wlsc_load_image(const char *filename,
|
|
|
|
int32_t *width_arg, int32_t *height_arg, uint32_t *stride_arg);
|
2011-01-26 22:37:07 +03:00
|
|
|
|
2008-12-19 21:47:53 +03:00
|
|
|
#endif
|