| 1 |
/* GStreamer Wayland Library |
| 2 |
* |
| 3 |
* Copyright (C) 2022 Collabora Ltd. |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Library General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Library General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Library General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 |
* Boston, MA 02110-1301 USA. |
| 19 |
*/ |
| 20 |
|
| 21 |
#pragma once |
| 22 |
|
| 23 |
#include <gst/wayland/wayland.h> |
| 24 |
|
| 25 |
G_BEGIN_DECLS |
| 26 |
|
| 27 |
/* The type of GstContext used to pass the wl_display pointer |
| 28 |
* from the application to the sink */ |
| 29 |
#define GST_WL_DISPLAY_HANDLE_CONTEXT_TYPE "GstWaylandDisplayHandleContextType" |
| 30 |
|
| 31 |
/* Accidental naming, used for implementing backward compatibility */ |
| 32 |
#define GST_WL_DISPLAY_HANDLE_LEGACY_CONTEXT_TYPE "GstWlDisplayHandleContextType" |
| 33 |
|
| 34 |
GST_WL_API |
| 35 |
gboolean gst_is_wl_display_handle_need_context_message (GstMessage * msg); |
| 36 |
|
| 37 |
GST_WL_API |
| 38 |
GstContext * |
| 39 |
gst_wl_display_handle_context_new (struct wl_display * display); |
| 40 |
|
| 41 |
GST_WL_API |
| 42 |
struct wl_display * |
| 43 |
gst_wl_display_handle_context_get_handle (GstContext * context); |
| 44 |
|
| 45 |
G_END_DECLS |