kde-lockscreen-suspend-display/xdg/display/dpms.h

15 lines
270 B
C
Raw Normal View History

#pragma once
#include <stdbool.h>
#define BADDISPLAY -1
#define DPMSDISABLED -2
#define NODPMSEXTENSION -3
#define NOTDPMSCAPABLE -4
#define UNKNOWNDPMSMODE -5
int turn_display_off(const char* xDisplayName);
int is_display_on(const char* xDisplayName, bool* isOn);