summaryrefslogtreecommitdiff
path: root/examples/C
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-28 14:50:01 +0200
committerAntonio Cardace <acardace@redhat.com>2020-09-28 16:07:52 +0200
commit740b092fda3d5f45102422f22884c88ea6c42858 (patch)
tree5a049cc10c99efb5ee39606b8b1d0893a9f46db3 /examples/C
parent328fb90f3e0d4e35975aff63944ac0412d7893a5 (diff)
downloadNetworkManager-740b092fda3d5f45102422f22884c88ea6c42858.tar.gz
format: replace tabs for indentation in code commentsac/clang-format
sed -i \ -e 's/^'$'\t'' \*/ */g' \ -e 's/^'$'\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t'' \*/ */g' \ -e 's/^'$'\t\t\t\t\t\t\t'' \*/ */g' \ $(git ls-files -- '*.[hc]')
Diffstat (limited to 'examples/C')
-rw-r--r--examples/C/glib/add-connection-gdbus.c8
-rw-r--r--examples/C/glib/add-connection-libnm.c8
-rw-r--r--examples/C/glib/get-active-connections-gdbus.c12
3 files changed, 14 insertions, 14 deletions
diff --git a/examples/C/glib/add-connection-gdbus.c b/examples/C/glib/add-connection-gdbus.c
index 890d881976..96fb02b166 100644
--- a/examples/C/glib/add-connection-gdbus.c
+++ b/examples/C/glib/add-connection-gdbus.c
@@ -91,10 +91,10 @@ add_connection(GDBusProxy *proxy, const char *con_name)
&setting_builder);
/* Call AddConnection with the connection dictionary as argument.
- * (g_variant_new() will consume the floating GVariant returned from
- * &connection_builder, and g_dbus_proxy_call_sync() will consume the
- * floating variant returned from g_variant_new(), so no cleanup is needed.
- */
+ * (g_variant_new() will consume the floating GVariant returned from
+ * &connection_builder, and g_dbus_proxy_call_sync() will consume the
+ * floating variant returned from g_variant_new(), so no cleanup is needed.
+ */
ret = g_dbus_proxy_call_sync(proxy,
"AddConnection",
g_variant_new("(a{sa{sv}})", &connection_builder),
diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c
index 90e5f5a25c..393a516735 100644
--- a/examples/C/glib/add-connection-libnm.c
+++ b/examples/C/glib/add-connection-libnm.c
@@ -24,8 +24,8 @@ added_cb(GObject *client, GAsyncResult *result, gpointer user_data)
GError * error = NULL;
/* NM responded to our request; either handle the resulting error or
- * print out the object path of the connection we just added.
- */
+ * print out the object path of the connection we just added.
+ */
remote = nm_client_add_connection_finish(NM_CLIENT(client), result, &error);
if (error) {
@@ -79,8 +79,8 @@ add_connection(NMClient *client, GMainLoop *loop, const char *con_name)
nm_connection_add_setting(connection, NM_SETTING(s_ip4));
/* Ask the settings service to add the new connection; we'll quit the
- * mainloop and exit when the callback is called.
- */
+ * mainloop and exit when the callback is called.
+ */
nm_client_add_connection_async(client, connection, TRUE, NULL, added_cb, loop);
g_object_unref(connection);
}
diff --git a/examples/C/glib/get-active-connections-gdbus.c b/examples/C/glib/get-active-connections-gdbus.c
index f972e45aff..7c410636cb 100644
--- a/examples/C/glib/get-active-connections-gdbus.c
+++ b/examples/C/glib/get-active-connections-gdbus.c
@@ -130,10 +130,10 @@ get_active_connection_details(const char *obj_path)
GError * error = NULL;
/* This function gets the backing Connection object that describes the
- * network configuration that the ActiveConnection object is actually using.
- * The ActiveConnection object contains the mapping between the configuration
- * and the actual network interfaces that are using that configuration.
- */
+ * network configuration that the ActiveConnection object is actually using.
+ * The ActiveConnection object contains the mapping between the configuration
+ * and the actual network interfaces that are using that configuration.
+ */
/* Create a D-Bus object proxy for the active connection object's properties */
props_proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
@@ -241,8 +241,8 @@ main(int argc, char *argv[])
GDBusProxy *props_proxy;
/* Create a D-Bus proxy to get the object properties from the NM Manager
- * object. NM_DBUS_* defines are from nm-dbus-interface.h.
- */
+ * object. NM_DBUS_* defines are from nm-dbus-interface.h.
+ */
props_proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
NULL,