X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-terminal%2Fgrdev-internal.h;h=f5915b16e8c8e17fdbd99489e7f5f768a13d62e3;hb=f6e3ee1493f20823b2c33465458b92f3581af88d;hp=0064f0be02738fd553d088706c99f44112b49a95;hpb=f22e0bce3732c1fd005b7a886042394e036bc1b3;p=elogind.git diff --git a/src/libsystemd-terminal/grdev-internal.h b/src/libsystemd-terminal/grdev-internal.h index 0064f0be0..f5915b16e 100644 --- a/src/libsystemd-terminal/grdev-internal.h +++ b/src/libsystemd-terminal/grdev-internal.h @@ -47,6 +47,7 @@ typedef struct grdev_card grdev_card; bool grdev_is_drm_card(grdev_card *card); grdev_card *grdev_find_drm_card(grdev_session *session, dev_t devnum); int grdev_drm_card_new(grdev_card **out, grdev_session *session, struct udev_device *ud); +void grdev_drm_card_hotplug(grdev_card *card, struct udev_device *ud); /* * Displays @@ -141,9 +142,11 @@ struct grdev_pipe { grdev_tile *tile; grdev_display_cache *cache; + sd_event_source *vsync_src; uint32_t width; uint32_t height; + uint32_t vrefresh; size_t max_fbs; grdev_fb *front; @@ -170,6 +173,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(grdev_pipe*, grdev_pipe_free); void grdev_pipe_ready(grdev_pipe *pipe, bool running); void grdev_pipe_frame(grdev_pipe *pipe); +void grdev_pipe_schedule(grdev_pipe *pipe, uint64_t frames); /* * Cards