[gnome-remote-desktop] rdp: Add public FrameInfo struct
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp: Add public FrameInfo struct
- Date: Fri, 3 Sep 2021 09:34:42 +0000 (UTC)
commit 37d9ea2787ced369b2651ff697b94d7ae89a71a6
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Fri Jun 25 15:44:59 2021 +0200
rdp: Add public FrameInfo struct
This FrameInfo struct will later be used by the graphics pipeline and
the frame log of a GFX surface to rewrite the frame history.
src/grd-rdp-frame-info.h | 31 +++++++++++++++++++++++++++++++
src/meson.build | 1 +
2 files changed, 32 insertions(+)
---
diff --git a/src/grd-rdp-frame-info.h b/src/grd-rdp-frame-info.h
new file mode 100644
index 0000000..ed5bc59
--- /dev/null
+++ b/src/grd-rdp-frame-info.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_FRAME_INFO_H
+#define GRD_RDP_FRAME_INFO_H
+
+typedef struct _GrdRdpFrameInfo
+{
+ uint32_t frame_id;
+
+ int64_t enc_time_us;
+ int64_t ack_time_us;
+} GrdRdpFrameInfo;
+
+#endif /* GRD_RDP_FRAME_INFO_H */
diff --git a/src/meson.build b/src/meson.build
index 0078f5b..af56786 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -39,6 +39,7 @@ if have_rdp
'grd-clipboard-rdp.h',
'grd-rdp-event-queue.c',
'grd-rdp-event-queue.h',
+ 'grd-rdp-frame-info.h',
'grd-rdp-fuse-clipboard.c',
'grd-rdp-fuse-clipboard.h',
'grd-rdp-gfx-surface.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]