[gnome-remote-desktop] Remove semi colon after GType macros
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] Remove semi colon after GType macros
- Date: Wed, 8 Dec 2021 09:09:50 +0000 (UTC)
commit 9d138b47e9cc62bcf7a54863a0db9823560511ed
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Nov 26 12:17:13 2021 +0100
Remove semi colon after GType macros
They are not statements and after macros are expandend leave stray ';'
in the syntax tree. Harmless unless one passes -pedantic, but lets be
slightly more correct anyway.
src/grd-clipboard-rdp.c | 2 +-
src/grd-clipboard-rdp.h | 2 +-
src/grd-clipboard-vnc.c | 2 +-
src/grd-clipboard-vnc.h | 2 +-
src/grd-clipboard.c | 2 +-
src/grd-clipboard.h | 2 +-
src/grd-context.h | 2 +-
src/grd-daemon.h | 2 +-
src/grd-rdp-event-queue.c | 2 +-
src/grd-rdp-event-queue.h | 2 +-
src/grd-rdp-fuse-clipboard.c | 2 +-
src/grd-rdp-fuse-clipboard.h | 2 +-
src/grd-rdp-gfx-frame-log.c | 2 +-
src/grd-rdp-gfx-frame-log.h | 2 +-
src/grd-rdp-gfx-surface.c | 2 +-
src/grd-rdp-gfx-surface.h | 2 +-
src/grd-rdp-graphics-pipeline.c | 2 +-
src/grd-rdp-graphics-pipeline.h | 2 +-
src/grd-rdp-network-autodetection.c | 4 +++-
src/grd-rdp-network-autodetection.h | 2 +-
src/grd-rdp-nvenc.c | 2 +-
src/grd-rdp-nvenc.h | 2 +-
src/grd-rdp-server.c | 2 +-
src/grd-rdp-server.h | 2 +-
src/grd-session-rdp.c | 2 +-
src/grd-session-rdp.h | 2 +-
src/grd-session-vnc.c | 2 +-
src/grd-session-vnc.h | 2 +-
src/grd-session.c | 2 +-
src/grd-session.h | 2 +-
src/grd-vnc-server.c | 2 +-
src/grd-vnc-server.h | 2 +-
32 files changed, 34 insertions(+), 32 deletions(-)
---
diff --git a/src/grd-clipboard-rdp.c b/src/grd-clipboard-rdp.c
index 33f14ce..292f3bf 100644
--- a/src/grd-clipboard-rdp.c
+++ b/src/grd-clipboard-rdp.c
@@ -135,7 +135,7 @@ struct _GrdClipboardRdp
unsigned int client_format_data_response_id;
};
-G_DEFINE_TYPE (GrdClipboardRdp, grd_clipboard_rdp, GRD_TYPE_CLIPBOARD);
+G_DEFINE_TYPE (GrdClipboardRdp, grd_clipboard_rdp, GRD_TYPE_CLIPBOARD)
static gboolean
send_mime_type_content_request (GrdClipboardRdp *clipboard_rdp,
diff --git a/src/grd-clipboard-rdp.h b/src/grd-clipboard-rdp.h
index 295a4ea..abb8b45 100644
--- a/src/grd-clipboard-rdp.h
+++ b/src/grd-clipboard-rdp.h
@@ -28,7 +28,7 @@
G_DECLARE_FINAL_TYPE (GrdClipboardRdp,
grd_clipboard_rdp,
GRD, CLIPBOARD_RDP,
- GrdClipboard);
+ GrdClipboard)
GrdClipboardRdp *grd_clipboard_rdp_new (GrdSessionRdp *session_rdp,
HANDLE vcm,
diff --git a/src/grd-clipboard-vnc.c b/src/grd-clipboard-vnc.c
index ca6daba..c6ae813 100644
--- a/src/grd-clipboard-vnc.c
+++ b/src/grd-clipboard-vnc.c
@@ -32,7 +32,7 @@ struct _GrdClipboardVnc
char *clipboard_utf8_string;
};
-G_DEFINE_TYPE (GrdClipboardVnc, grd_clipboard_vnc, GRD_TYPE_CLIPBOARD);
+G_DEFINE_TYPE (GrdClipboardVnc, grd_clipboard_vnc, GRD_TYPE_CLIPBOARD)
static void
grd_clipboard_vnc_update_client_mime_type_list (GrdClipboard *clipboard,
diff --git a/src/grd-clipboard-vnc.h b/src/grd-clipboard-vnc.h
index 681e1c5..8c83894 100644
--- a/src/grd-clipboard-vnc.h
+++ b/src/grd-clipboard-vnc.h
@@ -26,7 +26,7 @@
G_DECLARE_FINAL_TYPE (GrdClipboardVnc,
grd_clipboard_vnc,
GRD, CLIPBOARD_VNC,
- GrdClipboard);
+ GrdClipboard)
GrdClipboardVnc *grd_clipboard_vnc_new (GrdSessionVnc *session_vnc);
diff --git a/src/grd-clipboard.c b/src/grd-clipboard.c
index 81b9155..3074621 100644
--- a/src/grd-clipboard.c
+++ b/src/grd-clipboard.c
@@ -58,7 +58,7 @@ typedef struct _GrdClipboardPrivate
GMutex pending_read_mutex;
} GrdClipboardPrivate;
-G_DEFINE_TYPE_WITH_PRIVATE (GrdClipboard, grd_clipboard, G_TYPE_OBJECT);
+G_DEFINE_TYPE_WITH_PRIVATE (GrdClipboard, grd_clipboard, G_TYPE_OBJECT)
static void
handle_read_result (GrdClipboard *clipboard,
diff --git a/src/grd-clipboard.h b/src/grd-clipboard.h
index 81bfe1b..684d35b 100644
--- a/src/grd-clipboard.h
+++ b/src/grd-clipboard.h
@@ -27,7 +27,7 @@
#include "grd-types.h"
#define GRD_TYPE_CLIPBOARD (grd_clipboard_get_type ())
-G_DECLARE_DERIVABLE_TYPE (GrdClipboard, grd_clipboard, GRD, CLIPBOARD, GObject);
+G_DECLARE_DERIVABLE_TYPE (GrdClipboard, grd_clipboard, GRD, CLIPBOARD, GObject)
struct _GrdClipboardClass
{
diff --git a/src/grd-context.h b/src/grd-context.h
index eb53084..d33a459 100644
--- a/src/grd-context.h
+++ b/src/grd-context.h
@@ -37,7 +37,7 @@ typedef enum _GrdDebugFlags
} GrdDebugFlags;
#define GRD_TYPE_CONTEXT (grd_context_get_type ())
-G_DECLARE_FINAL_TYPE (GrdContext, grd_context, GRD, CONTEXT, GObject);
+G_DECLARE_FINAL_TYPE (GrdContext, grd_context, GRD, CONTEXT, GObject)
GrdDBusRemoteDesktop * grd_context_get_remote_desktop_proxy (GrdContext *context);
diff --git a/src/grd-daemon.h b/src/grd-daemon.h
index f8e4030..3f58eb6 100644
--- a/src/grd-daemon.h
+++ b/src/grd-daemon.h
@@ -30,7 +30,7 @@
typedef struct _GrdDaemon GrdDaemon;
#define GRD_TYPE_DAEMON (grd_daemon_get_type ())
-G_DECLARE_FINAL_TYPE (GrdDaemon, grd_daemon, GRD, DAEMON, GApplication);
+G_DECLARE_FINAL_TYPE (GrdDaemon, grd_daemon, GRD, DAEMON, GApplication)
GrdDBusRemoteDesktop *grd_daemon_get_dbus_proxy (GrdDaemon *daemon);
diff --git a/src/grd-rdp-event-queue.c b/src/grd-rdp-event-queue.c
index 4bc2255..fb89bb2 100644
--- a/src/grd-rdp-event-queue.c
+++ b/src/grd-rdp-event-queue.c
@@ -97,7 +97,7 @@ struct _GrdRdpEventQueue
gboolean num_lock_state;
};
-G_DEFINE_TYPE (GrdRdpEventQueue, grd_rdp_event_queue, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpEventQueue, grd_rdp_event_queue, G_TYPE_OBJECT)
static void
queue_rdp_event (GrdRdpEventQueue *rdp_event_queue,
diff --git a/src/grd-rdp-event-queue.h b/src/grd-rdp-event-queue.h
index ab81c43..51d67b5 100644
--- a/src/grd-rdp-event-queue.h
+++ b/src/grd-rdp-event-queue.h
@@ -28,7 +28,7 @@
#define GRD_TYPE_RDP_EVENT_QUEUE (grd_rdp_event_queue_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpEventQueue, grd_rdp_event_queue,
- GRD, RDP_EVENT_QUEUE, GObject);
+ GRD, RDP_EVENT_QUEUE, GObject)
GrdRdpEventQueue *grd_rdp_event_queue_new (GrdSessionRdp *session_rdp);
diff --git a/src/grd-rdp-fuse-clipboard.c b/src/grd-rdp-fuse-clipboard.c
index 3ff2a43..79910dc 100644
--- a/src/grd-rdp-fuse-clipboard.c
+++ b/src/grd-rdp-fuse-clipboard.c
@@ -143,7 +143,7 @@ struct _GrdRdpFuseClipboard
uint32_t next_stream_id;
};
-G_DEFINE_TYPE (GrdRdpFuseClipboard, grd_rdp_fuse_clipboard, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpFuseClipboard, grd_rdp_fuse_clipboard, G_TYPE_OBJECT)
static gboolean
should_remove_fuse_file (FuseFile *fuse_file,
diff --git a/src/grd-rdp-fuse-clipboard.h b/src/grd-rdp-fuse-clipboard.h
index 82814f7..fdf11d9 100644
--- a/src/grd-rdp-fuse-clipboard.h
+++ b/src/grd-rdp-fuse-clipboard.h
@@ -29,7 +29,7 @@
#define GRD_TYPE_RDP_FUSE_CLIPBOARD (grd_rdp_fuse_clipboard_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpFuseClipboard, grd_rdp_fuse_clipboard,
- GRD, RDP_FUSE_CLIPBOARD, GObject);
+ GRD, RDP_FUSE_CLIPBOARD, GObject)
GrdRdpFuseClipboard *grd_rdp_fuse_clipboard_new (GrdClipboardRdp *clipboard_rdp,
const char *mount_path);
diff --git a/src/grd-rdp-gfx-frame-log.c b/src/grd-rdp-gfx-frame-log.c
index bcbb74d..4cfb275 100644
--- a/src/grd-rdp-gfx-frame-log.c
+++ b/src/grd-rdp-gfx-frame-log.c
@@ -33,7 +33,7 @@ struct _GrdRdpGfxFrameLog
GHashTable *tracked_frames;
};
-G_DEFINE_TYPE (GrdRdpGfxFrameLog, grd_rdp_gfx_frame_log, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpGfxFrameLog, grd_rdp_gfx_frame_log, G_TYPE_OBJECT)
static void
track_enc_frame_info (GrdRdpGfxFrameLog *frame_log,
diff --git a/src/grd-rdp-gfx-frame-log.h b/src/grd-rdp-gfx-frame-log.h
index ed35c39..7f016b1 100644
--- a/src/grd-rdp-gfx-frame-log.h
+++ b/src/grd-rdp-gfx-frame-log.h
@@ -27,7 +27,7 @@
#define GRD_TYPE_RDP_GFX_FRAME_LOG (grd_rdp_gfx_frame_log_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpGfxFrameLog, grd_rdp_gfx_frame_log,
- GRD, RDP_GFX_FRAME_LOG, GObject);
+ GRD, RDP_GFX_FRAME_LOG, GObject)
GrdRdpGfxFrameLog *grd_rdp_gfx_frame_log_new (void);
diff --git a/src/grd-rdp-gfx-surface.c b/src/grd-rdp-gfx-surface.c
index 39af4ec..9ba5e25 100644
--- a/src/grd-rdp-gfx-surface.c
+++ b/src/grd-rdp-gfx-surface.c
@@ -62,7 +62,7 @@ struct _GrdRdpGfxSurface
uint32_t deactivate_throttling_th;
};
-G_DEFINE_TYPE (GrdRdpGfxSurface, grd_rdp_gfx_surface, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpGfxSurface, grd_rdp_gfx_surface, G_TYPE_OBJECT)
uint16_t
grd_rdp_gfx_surface_get_surface_id (GrdRdpGfxSurface *gfx_surface)
diff --git a/src/grd-rdp-gfx-surface.h b/src/grd-rdp-gfx-surface.h
index 295cf8b..7e05fa3 100644
--- a/src/grd-rdp-gfx-surface.h
+++ b/src/grd-rdp-gfx-surface.h
@@ -27,7 +27,7 @@
#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);
+ GRD, RDP_GFX_SURFACE, GObject)
GrdRdpGfxSurface *grd_rdp_gfx_surface_new (GrdRdpGraphicsPipeline *graphics_pipeline,
GrdSessionRdp *session_rdp,
diff --git a/src/grd-rdp-graphics-pipeline.c b/src/grd-rdp-graphics-pipeline.c
index 7736feb..8ef46a7 100644
--- a/src/grd-rdp-graphics-pipeline.c
+++ b/src/grd-rdp-graphics-pipeline.c
@@ -108,7 +108,7 @@ struct _GrdRdpGraphicsPipeline
uint32_t next_serial;
};
-G_DEFINE_TYPE (GrdRdpGraphicsPipeline, grd_rdp_graphics_pipeline, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpGraphicsPipeline, grd_rdp_graphics_pipeline, G_TYPE_OBJECT)
#ifdef HAVE_NVENC
void
diff --git a/src/grd-rdp-graphics-pipeline.h b/src/grd-rdp-graphics-pipeline.h
index 9571be7..c4b0de0 100644
--- a/src/grd-rdp-graphics-pipeline.h
+++ b/src/grd-rdp-graphics-pipeline.h
@@ -28,7 +28,7 @@
#define GRD_TYPE_RDP_GRAPHICS_PIPELINE (grd_rdp_graphics_pipeline_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpGraphicsPipeline, grd_rdp_graphics_pipeline,
- GRD, RDP_GRAPHICS_PIPELINE, GObject);
+ GRD, RDP_GRAPHICS_PIPELINE, GObject)
GrdRdpGraphicsPipeline *grd_rdp_graphics_pipeline_new (GrdSessionRdp *session_rdp,
GMainContext *pipeline_context,
diff --git a/src/grd-rdp-network-autodetection.c b/src/grd-rdp-network-autodetection.c
index 32713b8..7416142 100644
--- a/src/grd-rdp-network-autodetection.c
+++ b/src/grd-rdp-network-autodetection.c
@@ -71,7 +71,9 @@ struct _GrdRdpNetworkAutodetection
uint16_t next_sequence_number;
};
-G_DEFINE_TYPE (GrdRdpNetworkAutodetection, grd_rdp_network_autodetection, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpNetworkAutodetection,
+ grd_rdp_network_autodetection,
+ G_TYPE_OBJECT)
void
grd_rdp_network_autodetection_invoke_shutdown (GrdRdpNetworkAutodetection *network_autodetection)
diff --git a/src/grd-rdp-network-autodetection.h b/src/grd-rdp-network-autodetection.h
index 8d34963..81ef3ac 100644
--- a/src/grd-rdp-network-autodetection.h
+++ b/src/grd-rdp-network-autodetection.h
@@ -25,7 +25,7 @@
#define GRD_TYPE_RDP_NETWORK_AUTODETECTION (grd_rdp_network_autodetection_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpNetworkAutodetection, grd_rdp_network_autodetection,
- GRD, RDP_NETWORK_AUTODETECTION, GObject);
+ GRD, RDP_NETWORK_AUTODETECTION, GObject)
typedef enum _GrdRdpNwAutodetectRTTConsumer
{
diff --git a/src/grd-rdp-nvenc.c b/src/grd-rdp-nvenc.c
index d32f188..d9e916b 100644
--- a/src/grd-rdp-nvenc.c
+++ b/src/grd-rdp-nvenc.c
@@ -53,7 +53,7 @@ struct _GrdRdpNvenc
uint32_t next_encode_session_id;
};
-G_DEFINE_TYPE (GrdRdpNvenc, grd_rdp_nvenc, G_TYPE_OBJECT);
+G_DEFINE_TYPE (GrdRdpNvenc, grd_rdp_nvenc, G_TYPE_OBJECT)
void
grd_rdp_nvenc_push_cuda_context (GrdRdpNvenc *rdp_nvenc)
diff --git a/src/grd-rdp-nvenc.h b/src/grd-rdp-nvenc.h
index 4640132..905456c 100644
--- a/src/grd-rdp-nvenc.h
+++ b/src/grd-rdp-nvenc.h
@@ -25,7 +25,7 @@
#define GRD_TYPE_RDP_NVENC (grd_rdp_nvenc_get_type ())
G_DECLARE_FINAL_TYPE (GrdRdpNvenc, grd_rdp_nvenc,
- GRD, RDP_NVENC, GObject);
+ GRD, RDP_NVENC, GObject)
GrdRdpNvenc *grd_rdp_nvenc_new (void);
diff --git a/src/grd-rdp-server.c b/src/grd-rdp-server.c
index 8624eab..4b5d166 100644
--- a/src/grd-rdp-server.c
+++ b/src/grd-rdp-server.c
@@ -53,7 +53,7 @@ struct _GrdRdpServer
#endif /* HAVE_NVENC */
};
-G_DEFINE_TYPE (GrdRdpServer, grd_rdp_server, G_TYPE_SOCKET_SERVICE);
+G_DEFINE_TYPE (GrdRdpServer, grd_rdp_server, G_TYPE_SOCKET_SERVICE)
GrdContext *
grd_rdp_server_get_context (GrdRdpServer *rdp_server)
diff --git a/src/grd-rdp-server.h b/src/grd-rdp-server.h
index b838f20..2c011ad 100644
--- a/src/grd-rdp-server.h
+++ b/src/grd-rdp-server.h
@@ -29,7 +29,7 @@
G_DECLARE_FINAL_TYPE (GrdRdpServer,
grd_rdp_server,
GRD, RDP_SERVER,
- GSocketService);
+ GSocketService)
GrdContext *grd_rdp_server_get_context (GrdRdpServer *rdp_server);
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index dd33995..5726fbf 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -160,7 +160,7 @@ struct _GrdSessionRdp
GrdRdpPipeWireStream *pipewire_stream;
};
-G_DEFINE_TYPE (GrdSessionRdp, grd_session_rdp, GRD_TYPE_SESSION);
+G_DEFINE_TYPE (GrdSessionRdp, grd_session_rdp, GRD_TYPE_SESSION)
static gboolean
close_session_idle (gpointer user_data);
diff --git a/src/grd-session-rdp.h b/src/grd-session-rdp.h
index 0a525af..03de5b7 100644
--- a/src/grd-session-rdp.h
+++ b/src/grd-session-rdp.h
@@ -30,7 +30,7 @@
G_DECLARE_FINAL_TYPE (GrdSessionRdp,
grd_session_rdp,
GRD, SESSION_RDP,
- GrdSession);
+ GrdSession)
GrdSessionRdp *grd_session_rdp_new (GrdRdpServer *rdp_server,
GSocketConnection *connection,
diff --git a/src/grd-session-vnc.c b/src/grd-session-vnc.c
index 0e520dc..dfce5e4 100644
--- a/src/grd-session-vnc.c
+++ b/src/grd-session-vnc.c
@@ -71,7 +71,7 @@ struct _GrdSessionVnc
GrdClipboardVnc *clipboard_vnc;
};
-G_DEFINE_TYPE (GrdSessionVnc, grd_session_vnc, GRD_TYPE_SESSION);
+G_DEFINE_TYPE (GrdSessionVnc, grd_session_vnc, GRD_TYPE_SESSION)
static void
grd_session_vnc_detach_source (GrdSessionVnc *session_vnc);
diff --git a/src/grd-session-vnc.h b/src/grd-session-vnc.h
index a532567..fcc508d 100644
--- a/src/grd-session-vnc.h
+++ b/src/grd-session-vnc.h
@@ -34,7 +34,7 @@
G_DECLARE_FINAL_TYPE (GrdSessionVnc,
grd_session_vnc,
GRD, SESSION_VNC,
- GrdSession);
+ GrdSession)
GrdSessionVnc *grd_session_vnc_new (GrdVncServer *vnc_server,
GSocketConnection *connection);
diff --git a/src/grd-session.c b/src/grd-session.c
index 057bb03..b5e6240 100644
--- a/src/grd-session.c
+++ b/src/grd-session.c
@@ -78,7 +78,7 @@ typedef struct _GrdSessionPrivate
gulong num_lock_state_changed_id;
} GrdSessionPrivate;
-G_DEFINE_TYPE_WITH_PRIVATE (GrdSession, grd_session, G_TYPE_OBJECT);
+G_DEFINE_TYPE_WITH_PRIVATE (GrdSession, grd_session, G_TYPE_OBJECT)
GrdContext *
grd_session_get_context (GrdSession *session)
diff --git a/src/grd-session.h b/src/grd-session.h
index cca7d9e..d9f96e2 100644
--- a/src/grd-session.h
+++ b/src/grd-session.h
@@ -31,7 +31,7 @@
#include "grd-types.h"
#define GRD_TYPE_SESSION (grd_session_get_type ())
-G_DECLARE_DERIVABLE_TYPE (GrdSession, grd_session, GRD, SESSION, GObject);
+G_DECLARE_DERIVABLE_TYPE (GrdSession, grd_session, GRD, SESSION, GObject)
typedef enum _GrdKeyState
{
diff --git a/src/grd-vnc-server.c b/src/grd-vnc-server.c
index a6d95cb..57b8ed2 100644
--- a/src/grd-vnc-server.c
+++ b/src/grd-vnc-server.c
@@ -50,7 +50,7 @@ struct _GrdVncServer
GrdContext *context;
};
-G_DEFINE_TYPE (GrdVncServer, grd_vnc_server, G_TYPE_SOCKET_SERVICE);
+G_DEFINE_TYPE (GrdVncServer, grd_vnc_server, G_TYPE_SOCKET_SERVICE)
GrdContext *
grd_vnc_server_get_context (GrdVncServer *vnc_server)
diff --git a/src/grd-vnc-server.h b/src/grd-vnc-server.h
index 34313b6..1e3a039 100644
--- a/src/grd-vnc-server.h
+++ b/src/grd-vnc-server.h
@@ -32,7 +32,7 @@
G_DECLARE_FINAL_TYPE (GrdVncServer,
grd_vnc_server,
GRD, VNC_SERVER,
- GSocketService);
+ GSocketService)
GrdContext *grd_vnc_server_get_context (GrdVncServer *vnc_server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]