mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 08:39:48 +00:00
trivial: powerd: reformat code with contrib/reformat-code.py
This commit is contained in:
parent
3da17e5fbb
commit
4b10b1324c
@ -10,7 +10,7 @@
|
|||||||
#include <fwupdplugin.h>
|
#include <fwupdplugin.h>
|
||||||
|
|
||||||
struct FuPluginData {
|
struct FuPluginData {
|
||||||
GDBusProxy *proxy; /* nullable */
|
GDBusProxy *proxy; /* nullable */
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -35,14 +35,15 @@ fu_plugin_startup (FuPlugin *plugin, GError **error)
|
|||||||
g_autofree gchar *name_owner = NULL;
|
g_autofree gchar *name_owner = NULL;
|
||||||
|
|
||||||
/* establish proxy for method call to powerd */
|
/* establish proxy for method call to powerd */
|
||||||
data->proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
|
data->proxy =
|
||||||
G_DBUS_PROXY_FLAGS_NONE,
|
g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
|
||||||
NULL,
|
G_DBUS_PROXY_FLAGS_NONE,
|
||||||
"org.chromium.PowerManager",
|
NULL,
|
||||||
"/org/chromium/PowerManager",
|
"org.chromium.PowerManager",
|
||||||
"org.chromium.PowerManager",
|
"/org/chromium/PowerManager",
|
||||||
NULL,
|
"org.chromium.PowerManager",
|
||||||
error);
|
NULL,
|
||||||
|
error);
|
||||||
|
|
||||||
if (data->proxy == NULL) {
|
if (data->proxy == NULL) {
|
||||||
g_prefix_error (error, "failed to establish proxy: ");
|
g_prefix_error (error, "failed to establish proxy: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user