summaryrefslogtreecommitdiff
path: root/core/src/idle-inhibit.h
blob: a33fd69c41bfb4d20c507e06dc65193e514f0c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef ASTAL_IDLE_INHIBITOR_H
#define ASTAL_IDLE_INHIBITOR_H

#include <glib-object.h>
#include <gtk/gtk.h>
#include "idle-inhibit-unstable-v1-client.h"

G_BEGIN_DECLS

#define ASTAL_TYPE_INHIBIT_MANAGER (astal_inhibit_manager_get_type())

G_DECLARE_FINAL_TYPE(AstalInhibitManager, astal_inhibit_manager, ASTAL, INHIBIT_MANAGER, GObject)

typedef struct zwp_idle_inhibitor_v1 AstalInhibitor;

AstalInhibitManager* astal_inhibit_manager_get_default();
AstalInhibitor* astal_inhibit_manager_inhibit(AstalInhibitManager *self, GtkWindow *window);

G_END_DECLS

#endif  // !ASTAL_IDLE_INHIBITOR_H