diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-07 08:58:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 08:58:17 -0700 |
commit | be54278207f5099b77a538e3043758aa59e5c998 (patch) | |
tree | 8e322b1c600afa6fd56a325d20e00d0ec054e85b /include | |
parent | 7c6588d7ae0b260aedc61da58eb6bf153b35ca94 (diff) | |
parent | 60a83e99f4dc930d7d4ed5999f49967a72b7df32 (diff) |
Merge pull request #1095 from agx/output-add-mode
Allow to add additional modes to outputs
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/drm.h | 4 | ||||
-rw-r--r-- | include/rootston/config.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 5d6ff231..416507ea 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -143,5 +143,9 @@ void restore_drm_outputs(struct wlr_drm_backend *drm); void scan_drm_connectors(struct wlr_drm_backend *state); int handle_drm_event(int fd, uint32_t mask, void *data); void enable_drm_connector(struct wlr_output *output, bool enable); +/** + * Add mode to the list of available modes + */ +bool wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode); #endif diff --git a/include/rootston/config.h b/include/rootston/config.h index 97a8baab..86699c6a 100644 --- a/include/rootston/config.h +++ b/include/rootston/config.h @@ -1,11 +1,17 @@ #ifndef ROOTSTON_CONFIG_H #define ROOTSTON_CONFIG_H +#include <xf86drmMode.h> #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr_output_layout.h> #define ROOTS_CONFIG_DEFAULT_SEAT_NAME "seat0" +struct roots_output_mode_config { + drmModeModeInfo info; + struct wl_list link; +}; + struct roots_output_config { char *name; bool enable; @@ -17,6 +23,7 @@ struct roots_output_config { int width, height; float refresh_rate; } mode; + struct wl_list modes; }; struct roots_device_config { |