aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-06 11:48:30 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-06 11:48:30 -0400
commit6f5c70ac690dcb8981d160a9480f27f6bef7494c (patch)
treed0b9e3f92d9ac66c828c64189791d831202686f0 /include
parente240fb05181ec8f9f371279d5613bdcb1a8c7527 (diff)
Let backend track transform state
This will be necessary to provide it to clients via wl_output.
Diffstat (limited to 'include')
-rw-r--r--include/types.h5
-rw-r--r--include/wlr/types.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/include/types.h b/include/types.h
index 5513e936..d2c8d008 100644
--- a/include/types.h
+++ b/include/types.h
@@ -6,8 +6,11 @@
#include <stdbool.h>
struct wlr_output_impl {
- bool (*set_mode)(struct wlr_output_state *state, struct wlr_output_mode *mode);
void (*enable)(struct wlr_output_state *state, bool enable);
+ bool (*set_mode)(struct wlr_output_state *state,
+ struct wlr_output_mode *mode);
+ void (*transform)(struct wlr_output_state *state,
+ enum wl_output_transform transform);
void (*destroy)(struct wlr_output_state *state);
};
diff --git a/include/wlr/types.h b/include/wlr/types.h
index 8014974a..5de80a60 100644
--- a/include/wlr/types.h
+++ b/include/wlr/types.h
@@ -40,8 +40,11 @@ struct wlr_output {
} events;
};
-bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode);
void wlr_output_enable(struct wlr_output *output, bool enable);
+bool wlr_output_set_mode(struct wlr_output *output,
+ struct wlr_output_mode *mode);
+void wlr_output_transform(struct wlr_output *output,
+ enum wl_output_transform transform);
void wlr_output_destroy(struct wlr_output *output);
#endif