[gnome-network-displays] *: Uncrustify
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-network-displays] *: Uncrustify
- Date: Fri, 21 Jan 2022 21:53:45 +0000 (UTC)
commit 5c675a31c618b6dac2fbc9c5fbbda50e212aa011
Author: Christian Glombek <lorbus fedoraproject org>
Date: Fri Jan 21 17:54:44 2022 +0100
*: Uncrustify
Ran `./scripts/uncrustify.sh` on codebase.
Added a newline to `data/icons/meson.build`.
Closes: !145
data/icons/meson.build | 2 +-
src/nd-firewalld.c | 1 +
src/nd-meta-provider.c | 15 +++++++--------
src/nd-screencast-portal.c | 4 ++++
src/nd-wfd-p2p-provider.c | 4 +++-
src/wfd/wfd-media-factory.c | 1 +
src/wfd/wfd-server.c | 1 +
src/wfd/wfd-video-codec.c | 2 +-
8 files changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 59c9673..eff6e4b 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -1 +1 @@
-install_subdir('hicolor', install_dir: icondir)
\ No newline at end of file
+install_subdir('hicolor', install_dir: icondir)
diff --git a/src/nd-firewalld.c b/src/nd-firewalld.c
index d175958..a3b22d5 100644
--- a/src/nd-firewalld.c
+++ b/src/nd-firewalld.c
@@ -227,6 +227,7 @@ nd_firewalld_ensure_wfd_zone (NdFirewalld *self,
g_autoptr(GTask) task = NULL;
g_autoptr(GDBusConnection) connection = NULL;
GError *error = NULL;
+
/* We only support a single zone (for WFD) for now, so don't bother
* with creating a more generic API as it is only internal anyway.
*/
diff --git a/src/nd-meta-provider.c b/src/nd-meta-provider.c
index 397f834..a74673a 100644
--- a/src/nd-meta-provider.c
+++ b/src/nd-meta-provider.c
@@ -22,12 +22,12 @@
struct _NdMetaProvider
{
- GObject parent_instance;
+ GObject parent_instance;
- gboolean discover;
+ gboolean discover;
- GPtrArray *sinks;
- GPtrArray *providers;
+ GPtrArray *sinks;
+ GPtrArray *providers;
};
enum {
@@ -61,10 +61,8 @@ provider_sink_added_cb (NdMetaProvider *meta_provider, NdSink *sink, NdProvider
meta_sinks = g_ptr_array_new ();
for (gint i = 0; i < meta_provider->sinks->len; i++)
- {
- if (nd_meta_sink_matches_sink (g_ptr_array_index (meta_provider->sinks, i), sink))
- g_ptr_array_add (meta_sinks, g_ptr_array_index (meta_provider->sinks, i));
- }
+ if (nd_meta_sink_matches_sink (g_ptr_array_index (meta_provider->sinks, i), sink))
+ g_ptr_array_add (meta_sinks, g_ptr_array_index (meta_provider->sinks, i));
if (meta_sinks->len > 1)
g_warning ("MetaProvider: Found two meta sinks that belong to the same sink. This should not happen!\n");
@@ -327,6 +325,7 @@ nd_meta_provider_remove_provider (NdMetaProvider *meta_provider,
{
g_autoptr(GList) list = NULL;
GList *item;
+
g_assert (provider);
g_signal_handlers_disconnect_by_data (provider, meta_provider);
diff --git a/src/nd-screencast-portal.c b/src/nd-screencast-portal.c
index ba5f36a..a470ec4 100644
--- a/src/nd-screencast-portal.c
+++ b/src/nd-screencast-portal.c
@@ -176,6 +176,7 @@ portal_select_source_response_received (GDBusConnection *connection,
g_autoptr(GVariant) ret = NULL;
guint32 response;
+
g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(osa{sv})"));
g_autofree gchar *token = NULL;
g_autofree gchar *handle = NULL;
@@ -242,6 +243,7 @@ portal_create_session_response_received (GDBusConnection *connection,
g_autoptr(GVariant) ret = NULL;
guint32 response;
+
g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(oa{sv})"));
g_autofree gchar *token = NULL;
g_autofree gchar *handle = NULL;
@@ -307,6 +309,7 @@ on_portal_nd_proxy_acquired (GObject *source_object,
g_autoptr(GError) error = NULL;
GDBusProxy *screencast = NULL;
+
g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(a{sv})"));
g_autofree gchar *session_token = NULL;
g_autofree gchar *session_handle = NULL;
@@ -499,6 +502,7 @@ nd_screencast_portal_get_source (NdScreencastPortal *self)
g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(oa{sv})"));
g_autoptr(GVariant) res = NULL;
GUnixFDList *out_fd_list = NULL;
+
g_autoptr(GError) error = NULL;
g_autoptr(GstElement) src = NULL;
g_autofree gint *fds = NULL;
diff --git a/src/nd-wfd-p2p-provider.c b/src/nd-wfd-p2p-provider.c
index 5221d6b..02b8b34 100644
--- a/src/nd-wfd-p2p-provider.c
+++ b/src/nd-wfd-p2p-provider.c
@@ -45,7 +45,9 @@ enum {
static void nd_wfd_p2p_provider_provider_iface_init (NdProviderIface *iface);
static GList * nd_wfd_p2p_provider_provider_get_sinks (NdProvider *provider);
-static void peer_added_cb (NdWFDP2PProvider *provider, NMWifiP2PPeer *peer, NMDevice *device);
+static void peer_added_cb (NdWFDP2PProvider *provider,
+ NMWifiP2PPeer *peer,
+ NMDevice *device);
G_DEFINE_TYPE_EXTENDED (NdWFDP2PProvider, nd_wfd_p2p_provider, G_TYPE_OBJECT, 0,
G_IMPLEMENT_INTERFACE (ND_TYPE_PROVIDER,
diff --git a/src/wfd/wfd-media-factory.c b/src/wfd/wfd-media-factory.c
index f791ee8..328b33b 100644
--- a/src/wfd/wfd-media-factory.c
+++ b/src/wfd/wfd-media-factory.c
@@ -139,6 +139,7 @@ wfd_media_factory_create_element (GstRTSPMediaFactory *factory, const GstRTSPUrl
g_autoptr(GstPad) encoding_perf_sink = NULL;
WfdMediaFactory *self = WFD_MEDIA_FACTORY (factory);
QOSData *qos_data;
+
g_autoptr(GstElement) source = NULL;
g_autoptr(GstElement) audio_source = NULL;
GstElement *scale;
diff --git a/src/wfd/wfd-server.c b/src/wfd/wfd-server.c
index 8bf7721..ce62954 100644
--- a/src/wfd/wfd-server.c
+++ b/src/wfd/wfd-server.c
@@ -50,6 +50,7 @@ wfd_server_create_client (GstRTSPServer *server)
{
g_autoptr(WfdClient) client = NULL;
GstRTSPClient *rtsp_client;
+
g_autoptr(GstRTSPSessionPool) session_pool = NULL;
g_autoptr(GstRTSPMountPoints) mount_points = NULL;
g_autoptr(GstRTSPAuth) auth = NULL;
diff --git a/src/wfd/wfd-video-codec.c b/src/wfd/wfd-video-codec.c
index eb00a57..b7147cd 100644
--- a/src/wfd/wfd-video-codec.c
+++ b/src/wfd/wfd-video-codec.c
@@ -30,7 +30,7 @@ static const WfdResolution cea_resolutions[] = {
{4096, 2160, 25, FALSE},
{4096, 2160, 30, FALSE},
{4096, 2160, 50, FALSE},
- {4096 ,2160, 60, FALSE},
+ {4096, 2160, 60, FALSE},
};
static const WfdResolution vesa_resolutions[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]