mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend: drop wlr_backend_get_session()
This no longer has purpose.
This commit is contained in:
parent
41b7acbab7
commit
e7c556fcf6
5 changed files with 0 additions and 25 deletions
|
@ -66,13 +66,6 @@ void wlr_backend_destroy(struct wlr_backend *backend) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend) {
|
|
||||||
if (backend->impl->get_session) {
|
|
||||||
return backend->impl->get_session(backend);
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static uint64_t get_current_time_ms(void) {
|
static uint64_t get_current_time_ms(void) {
|
||||||
struct timespec ts = {0};
|
struct timespec ts = {0};
|
||||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||||
|
@ -388,8 +381,6 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
success:
|
success:
|
||||||
struct wlr_multi_backend *multi = wl_container_of(backend, multi, backend);
|
|
||||||
multi->session = session;
|
|
||||||
if (session_ptr != NULL) {
|
if (session_ptr != NULL) {
|
||||||
*session_ptr = session;
|
*session_ptr = session;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
#include <wlr/types/wlr_buffer.h>
|
#include <wlr/types/wlr_buffer.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "backend/backend.h"
|
#include "backend/backend.h"
|
||||||
|
@ -63,12 +62,6 @@ static void multi_backend_destroy(struct wlr_backend *wlr_backend) {
|
||||||
free(backend);
|
free(backend);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct wlr_session *multi_backend_get_session(
|
|
||||||
struct wlr_backend *_backend) {
|
|
||||||
struct wlr_multi_backend *backend = multi_backend_from_backend(_backend);
|
|
||||||
return backend->session;
|
|
||||||
}
|
|
||||||
|
|
||||||
static clockid_t multi_backend_get_presentation_clock(
|
static clockid_t multi_backend_get_presentation_clock(
|
||||||
struct wlr_backend *backend) {
|
struct wlr_backend *backend) {
|
||||||
struct wlr_multi_backend *multi = multi_backend_from_backend(backend);
|
struct wlr_multi_backend *multi = multi_backend_from_backend(backend);
|
||||||
|
@ -121,7 +114,6 @@ static uint32_t multi_backend_get_buffer_caps(struct wlr_backend *backend) {
|
||||||
static const struct wlr_backend_impl backend_impl = {
|
static const struct wlr_backend_impl backend_impl = {
|
||||||
.start = multi_backend_start,
|
.start = multi_backend_start,
|
||||||
.destroy = multi_backend_destroy,
|
.destroy = multi_backend_destroy,
|
||||||
.get_session = multi_backend_get_session,
|
|
||||||
.get_presentation_clock = multi_backend_get_presentation_clock,
|
.get_presentation_clock = multi_backend_get_presentation_clock,
|
||||||
.get_drm_fd = multi_backend_get_drm_fd,
|
.get_drm_fd = multi_backend_get_drm_fd,
|
||||||
.get_buffer_caps = multi_backend_get_buffer_caps,
|
.get_buffer_caps = multi_backend_get_buffer_caps,
|
||||||
|
|
|
@ -4,11 +4,9 @@
|
||||||
#include <wayland-util.h>
|
#include <wayland-util.h>
|
||||||
#include <wlr/backend/interface.h>
|
#include <wlr/backend/interface.h>
|
||||||
#include <wlr/backend/multi.h>
|
#include <wlr/backend/multi.h>
|
||||||
#include <wlr/backend/session.h>
|
|
||||||
|
|
||||||
struct wlr_multi_backend {
|
struct wlr_multi_backend {
|
||||||
struct wlr_backend backend;
|
struct wlr_backend backend;
|
||||||
struct wlr_session *session;
|
|
||||||
|
|
||||||
struct wl_list backends;
|
struct wl_list backends;
|
||||||
|
|
||||||
|
|
|
@ -51,11 +51,6 @@ bool wlr_backend_start(struct wlr_backend *backend);
|
||||||
* automatically when the struct wl_display is destroyed.
|
* automatically when the struct wl_display is destroyed.
|
||||||
*/
|
*/
|
||||||
void wlr_backend_destroy(struct wlr_backend *backend);
|
void wlr_backend_destroy(struct wlr_backend *backend);
|
||||||
/**
|
|
||||||
* Obtains the struct wlr_session reference from this backend if there is any.
|
|
||||||
* Might return NULL for backends that don't use a session.
|
|
||||||
*/
|
|
||||||
struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend);
|
|
||||||
/**
|
/**
|
||||||
* Returns the clock used by the backend for presentation feedback.
|
* Returns the clock used by the backend for presentation feedback.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
struct wlr_backend_impl {
|
struct wlr_backend_impl {
|
||||||
bool (*start)(struct wlr_backend *backend);
|
bool (*start)(struct wlr_backend *backend);
|
||||||
void (*destroy)(struct wlr_backend *backend);
|
void (*destroy)(struct wlr_backend *backend);
|
||||||
struct wlr_session *(*get_session)(struct wlr_backend *backend);
|
|
||||||
clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
|
clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
|
||||||
int (*get_drm_fd)(struct wlr_backend *backend);
|
int (*get_drm_fd)(struct wlr_backend *backend);
|
||||||
uint32_t (*get_buffer_caps)(struct wlr_backend *backend);
|
uint32_t (*get_buffer_caps)(struct wlr_backend *backend);
|
||||||
|
|
Loading…
Reference in a new issue