[gnome-remote-desktop] rdp: Add skeleton class for GFX surfaces
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp: Add skeleton class for GFX surfaces
- Date: Fri, 3 Sep 2021 09:34:42 +0000 (UTC)
commit 66df97a8f575739081e8d5c1b317017e80ac277b
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Mar 18 19:51:16 2021 +0100
rdp: Add skeleton class for GFX surfaces
This class will later represent a GFX surface.
Add the class now, so it can be already tracked in the corresponding
RDP surface.
src/grd-rdp-gfx-surface.c | 39 +++++++++++++++++++++++++++++++++++++++
src/grd-rdp-gfx-surface.h | 31 +++++++++++++++++++++++++++++++
src/grd-types.h | 1 +
src/meson.build | 2 ++
4 files changed, 73 insertions(+)
---
diff --git a/src/grd-rdp-gfx-surface.c b/src/grd-rdp-gfx-surface.c
new file mode 100644
index 0000000..8b8d89b
--- /dev/null
+++ b/src/grd-rdp-gfx-surface.c
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2021 Pascal Nowack
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#include "config.h"
+
+#include "grd-rdp-gfx-surface.h"
+
+struct _GrdRdpGfxSurface
+{
+ GObject parent;
+};
+
+G_DEFINE_TYPE (GrdRdpGfxSurface, grd_rdp_gfx_surface, G_TYPE_OBJECT);
+
+static void
+grd_rdp_gfx_surface_init (GrdRdpGfxSurface *gfx_surface)
+{
+}
+
+static void
+grd_rdp_gfx_surface_class_init (GrdRdpGfxSurfaceClass *klass)
+{
+}
diff --git a/src/grd-rdp-gfx-surface.h b/src/grd-rdp-gfx-surface.h
new file mode 100644
index 0000000..ef54335
--- /dev/null
+++ b/src/grd-rdp-gfx-surface.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2021 Pascal Nowack
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef GRD_RDP_GFX_SURFACE_H
+#define GRD_RDP_GFX_SURFACE_H
+
+#include <glib-object.h>
+
+#include "grd-types.h"
+
+#define GRD_TYPE_RDP_GFX_SURFACE (grd_rdp_gfx_surface_get_type ())
+G_DECLARE_FINAL_TYPE (GrdRdpGfxSurface, grd_rdp_gfx_surface,
+ GRD, RDP_GFX_SURFACE, GObject);
+
+#endif /* GRD_RDP_GFX_SURFACE_H */
diff --git a/src/grd-types.h b/src/grd-types.h
index abc7b94..72db298 100644
--- a/src/grd-types.h
+++ b/src/grd-types.h
@@ -28,6 +28,7 @@ typedef struct _GrdClipboard GrdClipboard;
typedef struct _GrdClipboardRdp GrdClipboardRdp;
typedef struct _GrdClipboardVnc GrdClipboardVnc;
typedef struct _GrdRdpEventQueue GrdRdpEventQueue;
+typedef struct _GrdRdpGfxSurface GrdRdpGfxSurface;
typedef struct _GrdRdpSAMFile GrdRdpSAMFile;
typedef struct _GrdRdpServer GrdRdpServer;
typedef struct _GrdRdpSurface GrdRdpSurface;
diff --git a/src/meson.build b/src/meson.build
index ae2a5f2..0078f5b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -41,6 +41,8 @@ if have_rdp
'grd-rdp-event-queue.h',
'grd-rdp-fuse-clipboard.c',
'grd-rdp-fuse-clipboard.h',
+ 'grd-rdp-gfx-surface.c',
+ 'grd-rdp-gfx-surface.h',
'grd-rdp-pipewire-stream.c',
'grd-rdp-pipewire-stream.h',
'grd-rdp-sam.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]