implement ext-idle-notify-v1
This commit is contained in:
31
src/seat.h
Normal file
31
src/seat.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef RIVERGUILE_SEAT_H
|
||||
#define RIVERGUILE_SEAT_H
|
||||
|
||||
#include <wayland-client.h>
|
||||
#include <libguile.h>
|
||||
|
||||
struct Seat
|
||||
{
|
||||
struct wl_list link;
|
||||
struct wl_seat *wl_seat;
|
||||
uint32_t name;
|
||||
|
||||
struct wl_list idles;
|
||||
};
|
||||
|
||||
struct Idle
|
||||
{
|
||||
struct Seat *seat;
|
||||
struct wl_list link;
|
||||
struct ext_idle_notification_v1 *idle_notification;
|
||||
SCM handler;
|
||||
uint32_t ms;
|
||||
};
|
||||
|
||||
struct Seat *seat_create (struct wl_seat *wl_seat, uint32_t name);
|
||||
void seat_destroy (struct Seat *seat);
|
||||
|
||||
void idle_configure (struct Idle *idle, struct Seat *seat);
|
||||
void idle_destroy (struct Idle *idle);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user