From 0d06d709d6eca13f6adf9be27f0f15204988c2e1 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 13 Dec 2022 10:15:55 -0600 Subject: [PATCH] rdp: Export rdp_head_destroy We'll need this from other files for multi-head support. Signed-off-by: Derek Foreman --- libweston/backend-rdp/rdp.c | 2 +- libweston/backend-rdp/rdp.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index b17e90247..0d19af155 100644 --- a/libweston/backend-rdp/rdp.c +++ b/libweston/backend-rdp/rdp.c @@ -550,7 +550,7 @@ rdp_head_create(struct weston_compositor *compositor, const char *name) return 0; } -static void +void rdp_head_destroy(struct weston_head *base) { struct rdp_head *head = to_rdp_head(base); diff --git a/libweston/backend-rdp/rdp.h b/libweston/backend-rdp/rdp.h index 6a3f07797..546b3f18f 100644 --- a/libweston/backend-rdp/rdp.h +++ b/libweston/backend-rdp/rdp.h @@ -235,6 +235,9 @@ rdp_clipboard_destroy(RdpPeerContext *peerCtx); void rdp_destroy(struct weston_compositor *ec); +void +rdp_head_destroy(struct weston_head *base); + static inline struct rdp_head * to_rdp_head(struct weston_head *base) {