aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-controller.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2010-08-26 11:32:53 +0200
committerSebastien Bacher <seb128@ubuntu.com>2010-08-26 11:32:53 +0200
commit80e5ad4f83a8b1218133761de11d433a7854041e (patch)
tree897ac9aa33cd0f1f703403e2bfc73136db80c86d /src/mpris2-controller.c
parentb4d305f16bae6804dcf2acf8b9ecc4629807c150 (diff)
downloadayatana-indicator-sound-80e5ad4f83a8b1218133761de11d433a7854041e.tar.gz
ayatana-indicator-sound-80e5ad4f83a8b1218133761de11d433a7854041e.tar.bz2
ayatana-indicator-sound-80e5ad4f83a8b1218133761de11d433a7854041e.zip
Import upstream version 0.4.1
Diffstat (limited to 'src/mpris2-controller.c')
-rw-r--r--src/mpris2-controller.c2452
1 files changed, 1224 insertions, 1228 deletions
diff --git a/src/mpris2-controller.c b/src/mpris2-controller.c
index a6546bb..87ec14a 100644
--- a/src/mpris2-controller.c
+++ b/src/mpris2-controller.c
@@ -1,4 +1,4 @@
-/* mpris2-controller.c generated by valac 0.9.5, the Vala compiler
+/* mpris2-controller.c generated by valac 0.9.7, the Vala compiler
* generated from mpris2-controller.vala, do not modify */
/*
@@ -125,16 +125,6 @@ typedef struct _MprisBridgeClass MprisBridgeClass;
typedef struct _TransportMenuitem TransportMenuitem;
typedef struct _TransportMenuitemClass TransportMenuitemClass;
-#define TYPE_SCRUB_MENUITEM (scrub_menuitem_get_type ())
-#define SCRUB_MENUITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCRUB_MENUITEM, ScrubMenuitem))
-#define SCRUB_MENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCRUB_MENUITEM, ScrubMenuitemClass))
-#define IS_SCRUB_MENUITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCRUB_MENUITEM))
-#define IS_SCRUB_MENUITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCRUB_MENUITEM))
-#define SCRUB_MENUITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCRUB_MENUITEM, ScrubMenuitemClass))
-
-typedef struct _ScrubMenuitem ScrubMenuitem;
-typedef struct _ScrubMenuitemClass ScrubMenuitemClass;
-
#define TRANSPORT_MENUITEM_TYPE_ACTION (transport_menuitem_action_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _dbus_g_connection_unref0(var) ((var == NULL) ? NULL : (var = (dbus_g_connection_unref (var), NULL)))
@@ -225,7 +215,6 @@ typedef enum {
PLAYER_CONTROLLER_WIDGET_ORDER_SEPARATOR,
PLAYER_CONTROLLER_WIDGET_ORDER_TITLE,
PLAYER_CONTROLLER_WIDGET_ORDER_METADATA,
- PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB,
PLAYER_CONTROLLER_WIDGET_ORDER_TRANSPORT
} PlayerControllerwidget_order;
@@ -367,6 +356,7 @@ enum {
#define MPRIS2_CONTROLLER_root_interface "org.mpris.MediaPlayer2"
Mpris2Controller* mpris2_controller_new (PlayerController* ctrl);
Mpris2Controller* mpris2_controller_construct (GType object_type, PlayerController* ctrl);
+void mpris2_controller_property_changed_cb (Mpris2Controller* self, const char* interface_source, GHashTable* changed_properties, char** invalid, int invalid_length1);
static GValue* _g_value_dup (GValue* self);
static gint mpris2_controller_determine_play_state (Mpris2Controller* self, const char* status);
PlayerController* mpris2_controller_get_owner (Mpris2Controller* self);
@@ -375,22 +365,19 @@ GType mpris_bridge_get_type (void) G_GNUC_CONST;
GType player_controller_widget_order_get_type (void) G_GNUC_CONST;
GType transport_menuitem_get_type (void) G_GNUC_CONST;
void transport_menuitem_change_play_state (TransportMenuitem* self, gint state);
-GType scrub_menuitem_get_type (void) G_GNUC_CONST;
-void scrub_menuitem_update_playstate (ScrubMenuitem* self, gint state);
-void scrub_menuitem_update_position (ScrubMenuitem* self, gint32 new_position);
-MprisPlayer* mpris2_controller_get_player (Mpris2Controller* self);
+static GHashTable* mpris2_controller_clean_metadata (Mpris2Controller* self);
void player_item_reset (PlayerItem* self, GeeHashSet* attrs);
GeeHashSet* metadata_menuitem_attributes_format (void);
void player_item_update (PlayerItem* self, GHashTable* data, GeeHashSet* attributes);
-GeeHashSet* scrub_menuitem_attributes_format (void);
-void mpris2_controller_property_changed_cb (Mpris2Controller* self, const char* interface_source, GHashTable* changed_properties, char** invalid, int invalid_length1);
+MprisPlayer* mpris2_controller_get_player (Mpris2Controller* self);
+static char** _vala_array_dup1 (char** self, int length);
void mpris2_controller_initial_update (Mpris2Controller* self);
GType transport_menuitem_action_get_type (void) G_GNUC_CONST;
void mpris2_controller_transport_event (Mpris2Controller* self, TransportMenuitemaction command);
void mpris2_controller_set_position (Mpris2Controller* self, double position);
void mpris2_controller_onSeeked (Mpris2Controller* self, gint64 position);
-MprisRoot* mpris2_controller_get_mpris2_root (Mpris2Controller* self);
gboolean mpris2_controller_connected (Mpris2Controller* self);
+MprisRoot* mpris2_controller_get_mpris2_root (Mpris2Controller* self);
gboolean mpris2_controller_was_successfull (Mpris2Controller* self);
void mpris2_controller_expose (Mpris2Controller* self);
static void mpris2_controller_set_mpris2_root (Mpris2Controller* self, MprisRoot* value);
@@ -1182,74 +1169,74 @@ static void mpris_root_dbus_proxy_Quit (MprisRoot* self, GError** error) {
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp20_;
+ const char* _tmp0_;
_edomain = DBUS_GERROR;
- _tmp20_ = _dbus_error.name + 27;
- if (strcmp (_tmp20_, "Failed") == 0) {
+ _tmp0_ = _dbus_error.name + 27;
+ if (strcmp (_tmp0_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp20_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp0_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp20_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp0_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp20_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp0_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp20_, "NoReply") == 0) {
+ } else if (strcmp (_tmp0_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp20_, "IOError") == 0) {
+ } else if (strcmp (_tmp0_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp20_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp0_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp20_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp0_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp20_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp0_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp20_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp0_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp20_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp0_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp20_, "NoServer") == 0) {
+ } else if (strcmp (_tmp0_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp20_, "Timeout") == 0) {
+ } else if (strcmp (_tmp0_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp20_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp0_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp20_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp0_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp20_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp0_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp20_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp0_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp20_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp0_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp20_, "FileExists") == 0) {
+ } else if (strcmp (_tmp0_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp20_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp0_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp20_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp0_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp20_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp0_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp20_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp0_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp20_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp0_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp20_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp0_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp20_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp0_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp20_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp0_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp20_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp0_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp20_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp0_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp20_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp0_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp20_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp0_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp20_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp0_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp20_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp0_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -1287,74 +1274,74 @@ static void mpris_root_dbus_proxy_Raise (MprisRoot* self, GError** error) {
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp21_;
+ const char* _tmp1_;
_edomain = DBUS_GERROR;
- _tmp21_ = _dbus_error.name + 27;
- if (strcmp (_tmp21_, "Failed") == 0) {
+ _tmp1_ = _dbus_error.name + 27;
+ if (strcmp (_tmp1_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp21_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp1_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp21_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp1_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp21_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp1_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp21_, "NoReply") == 0) {
+ } else if (strcmp (_tmp1_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp21_, "IOError") == 0) {
+ } else if (strcmp (_tmp1_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp21_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp1_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp21_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp1_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp21_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp1_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp21_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp1_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp21_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp1_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp21_, "NoServer") == 0) {
+ } else if (strcmp (_tmp1_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp21_, "Timeout") == 0) {
+ } else if (strcmp (_tmp1_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp21_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp1_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp21_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp1_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp21_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp1_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp21_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp1_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp21_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp1_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp21_, "FileExists") == 0) {
+ } else if (strcmp (_tmp1_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp21_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp1_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp21_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp1_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp21_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp1_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp21_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp1_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp21_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp1_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp21_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp1_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp21_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp1_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp21_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp1_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp21_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp1_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp21_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp1_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp21_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp1_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp21_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp1_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp21_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp1_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp21_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp1_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -1377,19 +1364,19 @@ static gboolean mpris_root_dbus_proxy_get_HasTracklist (MprisRoot* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp22_;
- const char* _tmp23_;
+ const char* _tmp2_;
+ const char* _tmp3_;
gboolean _result;
- dbus_bool_t _tmp24_;
+ dbus_bool_t _tmp4_;
if (((MprisRootDBusProxy*) self)->disposed) {
return FALSE;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp22_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp22_);
- _tmp23_ = "HasTracklist";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp23_);
+ _tmp2_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp2_);
+ _tmp3_ = "HasTracklist";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp3_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -1412,9 +1399,9 @@ static gboolean mpris_root_dbus_proxy_get_HasTracklist (MprisRoot* self) {
dbus_message_unref (_reply);
return FALSE;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp24_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp4_);
dbus_message_iter_next (&_subiter);
- _result = _tmp24_;
+ _result = _tmp4_;
dbus_message_unref (_reply);
return _result;
}
@@ -1425,21 +1412,21 @@ static void mpris_root_dbus_proxy_set_HasTracklist (MprisRoot* self, gboolean va
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp25_;
- const char* _tmp26_;
- dbus_bool_t _tmp27_;
+ const char* _tmp5_;
+ const char* _tmp6_;
+ dbus_bool_t _tmp7_;
if (((MprisRootDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp25_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp25_);
- _tmp26_ = "HasTracklist";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp26_);
+ _tmp5_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp5_);
+ _tmp6_ = "HasTracklist";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp6_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "b", &_subiter);
- _tmp27_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp27_);
+ _tmp7_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp7_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -1466,19 +1453,19 @@ static gboolean mpris_root_dbus_proxy_get_CanQuit (MprisRoot* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp28_;
- const char* _tmp29_;
+ const char* _tmp8_;
+ const char* _tmp9_;
gboolean _result;
- dbus_bool_t _tmp30_;
+ dbus_bool_t _tmp10_;
if (((MprisRootDBusProxy*) self)->disposed) {
return FALSE;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp28_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp28_);
- _tmp29_ = "CanQuit";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp29_);
+ _tmp8_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp8_);
+ _tmp9_ = "CanQuit";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp9_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -1501,9 +1488,9 @@ static gboolean mpris_root_dbus_proxy_get_CanQuit (MprisRoot* self) {
dbus_message_unref (_reply);
return FALSE;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp30_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp10_);
dbus_message_iter_next (&_subiter);
- _result = _tmp30_;
+ _result = _tmp10_;
dbus_message_unref (_reply);
return _result;
}
@@ -1514,21 +1501,21 @@ static void mpris_root_dbus_proxy_set_CanQuit (MprisRoot* self, gboolean value)
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp31_;
- const char* _tmp32_;
- dbus_bool_t _tmp33_;
+ const char* _tmp11_;
+ const char* _tmp12_;
+ dbus_bool_t _tmp13_;
if (((MprisRootDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp31_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp31_);
- _tmp32_ = "CanQuit";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp32_);
+ _tmp11_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp11_);
+ _tmp12_ = "CanQuit";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp12_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "b", &_subiter);
- _tmp33_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp33_);
+ _tmp13_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp13_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -1555,19 +1542,19 @@ static gboolean mpris_root_dbus_proxy_get_CanRaise (MprisRoot* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp34_;
- const char* _tmp35_;
+ const char* _tmp14_;
+ const char* _tmp15_;
gboolean _result;
- dbus_bool_t _tmp36_;
+ dbus_bool_t _tmp16_;
if (((MprisRootDBusProxy*) self)->disposed) {
return FALSE;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp34_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp34_);
- _tmp35_ = "CanRaise";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp35_);
+ _tmp14_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp14_);
+ _tmp15_ = "CanRaise";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp15_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -1590,9 +1577,9 @@ static gboolean mpris_root_dbus_proxy_get_CanRaise (MprisRoot* self) {
dbus_message_unref (_reply);
return FALSE;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp36_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp16_);
dbus_message_iter_next (&_subiter);
- _result = _tmp36_;
+ _result = _tmp16_;
dbus_message_unref (_reply);
return _result;
}
@@ -1603,21 +1590,21 @@ static void mpris_root_dbus_proxy_set_CanRaise (MprisRoot* self, gboolean value)
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp37_;
- const char* _tmp38_;
- dbus_bool_t _tmp39_;
+ const char* _tmp17_;
+ const char* _tmp18_;
+ dbus_bool_t _tmp19_;
if (((MprisRootDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp37_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp37_);
- _tmp38_ = "CanRaise";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp38_);
+ _tmp17_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp17_);
+ _tmp18_ = "CanRaise";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp18_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "b", &_subiter);
- _tmp39_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp39_);
+ _tmp19_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_BOOLEAN, &_tmp19_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -1644,19 +1631,19 @@ static char* mpris_root_dbus_proxy_get_Identity (MprisRoot* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp40_;
- const char* _tmp41_;
+ const char* _tmp20_;
+ const char* _tmp21_;
char* _result;
- const char* _tmp42_;
+ const char* _tmp22_;
if (((MprisRootDBusProxy*) self)->disposed) {
return NULL;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp40_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp40_);
- _tmp41_ = "Identity";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp41_);
+ _tmp20_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp20_);
+ _tmp21_ = "Identity";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp21_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -1679,9 +1666,9 @@ static char* mpris_root_dbus_proxy_get_Identity (MprisRoot* self) {
dbus_message_unref (_reply);
return NULL;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp42_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp22_);
dbus_message_iter_next (&_subiter);
- _result = g_strdup (_tmp42_);
+ _result = g_strdup (_tmp22_);
dbus_message_unref (_reply);
return _result;
}
@@ -1692,21 +1679,21 @@ static void mpris_root_dbus_proxy_set_Identity (MprisRoot* self, const char* val
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp43_;
- const char* _tmp44_;
- const char* _tmp45_;
+ const char* _tmp23_;
+ const char* _tmp24_;
+ const char* _tmp25_;
if (((MprisRootDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp43_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp43_);
- _tmp44_ = "Identity";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp44_);
+ _tmp23_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp23_);
+ _tmp24_ = "Identity";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp24_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "s", &_subiter);
- _tmp45_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp45_);
+ _tmp25_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp25_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -1733,19 +1720,19 @@ static char* mpris_root_dbus_proxy_get_DesktopEntry (MprisRoot* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp46_;
- const char* _tmp47_;
+ const char* _tmp26_;
+ const char* _tmp27_;
char* _result;
- const char* _tmp48_;
+ const char* _tmp28_;
if (((MprisRootDBusProxy*) self)->disposed) {
return NULL;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp46_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp46_);
- _tmp47_ = "DesktopEntry";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp47_);
+ _tmp26_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp26_);
+ _tmp27_ = "DesktopEntry";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp27_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -1768,9 +1755,9 @@ static char* mpris_root_dbus_proxy_get_DesktopEntry (MprisRoot* self) {
dbus_message_unref (_reply);
return NULL;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp48_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp28_);
dbus_message_iter_next (&_subiter);
- _result = g_strdup (_tmp48_);
+ _result = g_strdup (_tmp28_);
dbus_message_unref (_reply);
return _result;
}
@@ -1781,21 +1768,21 @@ static void mpris_root_dbus_proxy_set_DesktopEntry (MprisRoot* self, const char*
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp49_;
- const char* _tmp50_;
- const char* _tmp51_;
+ const char* _tmp29_;
+ const char* _tmp30_;
+ const char* _tmp31_;
if (((MprisRootDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp49_ = "org.mpris.MediaPlayer2";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp49_);
- _tmp50_ = "DesktopEntry";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp50_);
+ _tmp29_ = "org.mpris.MediaPlayer2";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp29_);
+ _tmp30_ = "DesktopEntry";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp30_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "s", &_subiter);
- _tmp51_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp51_);
+ _tmp31_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp31_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -1932,124 +1919,124 @@ static DBusHandlerResult _dbus_mpris_player_property_get (MprisPlayer* self, DBu
DBusMessage* reply;
DBusMessageIter iter, reply_iter, subiter;
char* interface_name;
- const char* _tmp52_;
+ const char* _tmp0_;
char* property_name;
- const char* _tmp53_;
+ const char* _tmp1_;
if (strcmp (dbus_message_get_signature (message), "ss")) {
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
dbus_message_iter_init (message, &iter);
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &reply_iter);
- dbus_message_iter_get_basic (&iter, &_tmp52_);
+ dbus_message_iter_get_basic (&iter, &_tmp0_);
dbus_message_iter_next (&iter);
- interface_name = g_strdup (_tmp52_);
- dbus_message_iter_get_basic (&iter, &_tmp53_);
+ interface_name = g_strdup (_tmp0_);
+ dbus_message_iter_get_basic (&iter, &_tmp1_);
dbus_message_iter_next (&iter);
- property_name = g_strdup (_tmp53_);
+ property_name = g_strdup (_tmp1_);
if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "Metadata") == 0)) {
GHashTable* result;
- DBusMessageIter _tmp54_, _tmp55_;
- GHashTableIter _tmp56_;
- gpointer _tmp57_, _tmp58_;
+ DBusMessageIter _tmp2_, _tmp3_;
+ GHashTableIter _tmp4_;
+ gpointer _tmp5_, _tmp6_;
dbus_message_iter_open_container (&reply_iter, DBUS_TYPE_VARIANT, "a{sv}", &subiter);
result = mpris_player_get_Metadata (self);
- dbus_message_iter_open_container (&subiter, DBUS_TYPE_ARRAY, "{sv}", &_tmp54_);
- g_hash_table_iter_init (&_tmp56_, result);
- while (g_hash_table_iter_next (&_tmp56_, &_tmp57_, &_tmp58_)) {
+ dbus_message_iter_open_container (&subiter, DBUS_TYPE_ARRAY, "{sv}", &_tmp2_);
+ g_hash_table_iter_init (&_tmp4_, result);
+ while (g_hash_table_iter_next (&_tmp4_, &_tmp5_, &_tmp6_)) {
char* _key;
GValue* _value;
- const char* _tmp59_;
- DBusMessageIter _tmp60_;
- dbus_message_iter_open_container (&_tmp54_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp55_);
- _key = (char*) _tmp57_;
- _value = (GValue*) _tmp58_;
- _tmp59_ = _key;
- dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_STRING, &_tmp59_);
+ const char* _tmp7_;
+ DBusMessageIter _tmp8_;
+ dbus_message_iter_open_container (&_tmp2_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp3_);
+ _key = (char*) _tmp5_;
+ _value = (GValue*) _tmp6_;
+ _tmp7_ = _key;
+ dbus_message_iter_append_basic (&_tmp3_, DBUS_TYPE_STRING, &_tmp7_);
if (G_VALUE_TYPE (_value) == G_TYPE_UCHAR) {
- guint8 _tmp61_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "y", &_tmp60_);
- _tmp61_ = g_value_get_uchar (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_BYTE, &_tmp61_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ guint8 _tmp9_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "y", &_tmp8_);
+ _tmp9_ = g_value_get_uchar (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_BYTE, &_tmp9_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_BOOLEAN) {
- dbus_bool_t _tmp62_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "b", &_tmp60_);
- _tmp62_ = g_value_get_boolean (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_BOOLEAN, &_tmp62_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_bool_t _tmp10_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "b", &_tmp8_);
+ _tmp10_ = g_value_get_boolean (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_BOOLEAN, &_tmp10_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT) {
- dbus_int32_t _tmp63_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "i", &_tmp60_);
- _tmp63_ = g_value_get_int (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_INT32, &_tmp63_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_int32_t _tmp11_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "i", &_tmp8_);
+ _tmp11_ = g_value_get_int (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_INT32, &_tmp11_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT) {
- dbus_uint32_t _tmp64_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "u", &_tmp60_);
- _tmp64_ = g_value_get_uint (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_UINT32, &_tmp64_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_uint32_t _tmp12_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "u", &_tmp8_);
+ _tmp12_ = g_value_get_uint (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_UINT32, &_tmp12_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT64) {
- dbus_int64_t _tmp65_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "x", &_tmp60_);
- _tmp65_ = g_value_get_int64 (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_INT64, &_tmp65_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_int64_t _tmp13_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "x", &_tmp8_);
+ _tmp13_ = g_value_get_int64 (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_INT64, &_tmp13_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT64) {
- dbus_uint64_t _tmp66_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "t", &_tmp60_);
- _tmp66_ = g_value_get_uint64 (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_UINT64, &_tmp66_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_uint64_t _tmp14_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "t", &_tmp8_);
+ _tmp14_ = g_value_get_uint64 (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_UINT64, &_tmp14_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_DOUBLE) {
- double _tmp67_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "d", &_tmp60_);
- _tmp67_ = g_value_get_double (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_DOUBLE, &_tmp67_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ double _tmp15_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "d", &_tmp8_);
+ _tmp15_ = g_value_get_double (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_DOUBLE, &_tmp15_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRING) {
- const char* _tmp68_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "s", &_tmp60_);
- _tmp68_ = g_value_get_string (_value);
- dbus_message_iter_append_basic (&_tmp60_, DBUS_TYPE_STRING, &_tmp68_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ const char* _tmp16_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "s", &_tmp8_);
+ _tmp16_ = g_value_get_string (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_STRING, &_tmp16_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRV) {
- const char** _tmp69_;
- DBusMessageIter _tmp70_;
- int _tmp71_;
- dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_VARIANT, "as", &_tmp60_);
- _tmp69_ = g_value_get_boxed (_value);
- dbus_message_iter_open_container (&_tmp60_, DBUS_TYPE_ARRAY, "s", &_tmp70_);
- for (_tmp71_ = 0; _tmp71_ < g_strv_length (g_value_get_boxed (_value)); _tmp71_++) {
- const char* _tmp72_;
- _tmp72_ = *_tmp69_;
- dbus_message_iter_append_basic (&_tmp70_, DBUS_TYPE_STRING, &_tmp72_);
- _tmp69_++;
+ const char** _tmp17_;
+ DBusMessageIter _tmp18_;
+ int _tmp19_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "as", &_tmp8_);
+ _tmp17_ = g_value_get_boxed (_value);
+ dbus_message_iter_open_container (&_tmp8_, DBUS_TYPE_ARRAY, "s", &_tmp18_);
+ for (_tmp19_ = 0; _tmp19_ < g_strv_length (g_value_get_boxed (_value)); _tmp19_++) {
+ const char* _tmp20_;
+ _tmp20_ = *_tmp17_;
+ dbus_message_iter_append_basic (&_tmp18_, DBUS_TYPE_STRING, &_tmp20_);
+ _tmp17_++;
}
- dbus_message_iter_close_container (&_tmp60_, &_tmp70_);
- dbus_message_iter_close_container (&_tmp55_, &_tmp60_);
+ dbus_message_iter_close_container (&_tmp8_, &_tmp18_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
}
- dbus_message_iter_close_container (&_tmp54_, &_tmp55_);
+ dbus_message_iter_close_container (&_tmp2_, &_tmp3_);
}
- dbus_message_iter_close_container (&subiter, &_tmp54_);
+ dbus_message_iter_close_container (&subiter, &_tmp2_);
_g_hash_table_unref0 (result);
dbus_message_iter_close_container (&reply_iter, &subiter);
} else if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "Position") == 0)) {
gint32 result;
- dbus_int32_t _tmp73_;
+ dbus_int32_t _tmp21_;
dbus_message_iter_open_container (&reply_iter, DBUS_TYPE_VARIANT, "i", &subiter);
result = mpris_player_get_Position (self);
- _tmp73_ = result;
- dbus_message_iter_append_basic (&subiter, DBUS_TYPE_INT32, &_tmp73_);
+ _tmp21_ = result;
+ dbus_message_iter_append_basic (&subiter, DBUS_TYPE_INT32, &_tmp21_);
dbus_message_iter_close_container (&reply_iter, &subiter);
} else if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "PlaybackStatus") == 0)) {
char* result;
- const char* _tmp74_;
+ const char* _tmp22_;
dbus_message_iter_open_container (&reply_iter, DBUS_TYPE_VARIANT, "s", &subiter);
result = mpris_player_get_PlaybackStatus (self);
- _tmp74_ = result;
- dbus_message_iter_append_basic (&subiter, DBUS_TYPE_STRING, &_tmp74_);
+ _tmp22_ = result;
+ dbus_message_iter_append_basic (&subiter, DBUS_TYPE_STRING, &_tmp22_);
_g_free0 (result);
dbus_message_iter_close_container (&reply_iter, &subiter);
} else {
@@ -2072,146 +2059,146 @@ static DBusHandlerResult _dbus_mpris_player_property_set (MprisPlayer* self, DBu
DBusMessage* reply;
DBusMessageIter iter, subiter;
char* interface_name;
- const char* _tmp75_;
+ const char* _tmp23_;
char* property_name;
- const char* _tmp76_;
+ const char* _tmp24_;
if (strcmp (dbus_message_get_signature (message), "ssv")) {
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
dbus_message_iter_init (message, &iter);
reply = dbus_message_new_method_return (message);
- dbus_message_iter_get_basic (&iter, &_tmp75_);
+ dbus_message_iter_get_basic (&iter, &_tmp23_);
dbus_message_iter_next (&iter);
- interface_name = g_strdup (_tmp75_);
- dbus_message_iter_get_basic (&iter, &_tmp76_);
+ interface_name = g_strdup (_tmp23_);
+ dbus_message_iter_get_basic (&iter, &_tmp24_);
dbus_message_iter_next (&iter);
- property_name = g_strdup (_tmp76_);
+ property_name = g_strdup (_tmp24_);
dbus_message_iter_recurse (&iter, &subiter);
if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "Metadata") == 0)) {
GHashTable* value;
- GHashTable* _tmp77_;
- DBusMessageIter _tmp78_;
- DBusMessageIter _tmp79_;
- _tmp77_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
- dbus_message_iter_recurse (&subiter, &_tmp78_);
- while (dbus_message_iter_get_arg_type (&_tmp78_)) {
+ GHashTable* _tmp25_;
+ DBusMessageIter _tmp26_;
+ DBusMessageIter _tmp27_;
+ _tmp25_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
+ dbus_message_iter_recurse (&subiter, &_tmp26_);
+ while (dbus_message_iter_get_arg_type (&_tmp26_)) {
char* _key;
GValue* _value;
- const char* _tmp80_;
- GValue _tmp81_ = {0};
- DBusMessageIter _tmp82_;
- dbus_message_iter_recurse (&_tmp78_, &_tmp79_);
- dbus_message_iter_get_basic (&_tmp79_, &_tmp80_);
- dbus_message_iter_next (&_tmp79_);
- _key = g_strdup (_tmp80_);
- dbus_message_iter_recurse (&_tmp79_, &_tmp82_);
- if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_BYTE) {
- guint8 _tmp83_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp83_);
- g_value_init (&_tmp81_, G_TYPE_UCHAR);
- g_value_set_uchar (&_tmp81_, _tmp83_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_BOOLEAN) {
- dbus_bool_t _tmp84_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp84_);
- g_value_init (&_tmp81_, G_TYPE_BOOLEAN);
- g_value_set_boolean (&_tmp81_, _tmp84_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_INT16) {
- dbus_int16_t _tmp85_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp85_);
- g_value_init (&_tmp81_, G_TYPE_INT);
- g_value_set_int (&_tmp81_, _tmp85_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_UINT16) {
- dbus_uint16_t _tmp86_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp86_);
- g_value_init (&_tmp81_, G_TYPE_UINT);
- g_value_set_uint (&_tmp81_, _tmp86_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_INT32) {
- dbus_int32_t _tmp87_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp87_);
- g_value_init (&_tmp81_, G_TYPE_INT);
- g_value_set_int (&_tmp81_, _tmp87_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_UINT32) {
- dbus_uint32_t _tmp88_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp88_);
- g_value_init (&_tmp81_, G_TYPE_UINT);
- g_value_set_uint (&_tmp81_, _tmp88_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_INT64) {
- dbus_int64_t _tmp89_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp89_);
- g_value_init (&_tmp81_, G_TYPE_INT64);
- g_value_set_int64 (&_tmp81_, _tmp89_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_UINT64) {
- dbus_uint64_t _tmp90_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp90_);
- g_value_init (&_tmp81_, G_TYPE_UINT64);
- g_value_set_uint64 (&_tmp81_, _tmp90_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_DOUBLE) {
- double _tmp91_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp91_);
- g_value_init (&_tmp81_, G_TYPE_DOUBLE);
- g_value_set_double (&_tmp81_, _tmp91_);
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_STRING) {
- const char* _tmp92_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp92_);
- g_value_init (&_tmp81_, G_TYPE_STRING);
- g_value_take_string (&_tmp81_, g_strdup (_tmp92_));
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_OBJECT_PATH) {
- const char* _tmp93_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp93_);
- g_value_init (&_tmp81_, G_TYPE_STRING);
- g_value_take_string (&_tmp81_, g_strdup (_tmp93_));
- } else if (dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_SIGNATURE) {
- const char* _tmp94_;
- dbus_message_iter_get_basic (&_tmp82_, &_tmp94_);
- g_value_init (&_tmp81_, G_TYPE_STRING);
- g_value_take_string (&_tmp81_, g_strdup (_tmp94_));
- } else if ((dbus_message_iter_get_arg_type (&_tmp82_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp82_) == DBUS_TYPE_STRING)) {
- const char** _tmp95_;
- int _tmp95__length;
- int _tmp95__size;
- int _tmp95__length1;
- DBusMessageIter _tmp96_;
- _tmp95_ = g_new (const char*, 5);
- _tmp95__length = 0;
- _tmp95__size = 4;
- _tmp95__length1 = 0;
- dbus_message_iter_recurse (&_tmp82_, &_tmp96_);
- for (; dbus_message_iter_get_arg_type (&_tmp96_); _tmp95__length1++) {
- const char* _tmp97_;
- if (_tmp95__size == _tmp95__length) {
- _tmp95__size = 2 * _tmp95__size;
- _tmp95_ = g_renew (const char*, _tmp95_, _tmp95__size + 1);
+ const char* _tmp28_;
+ GValue _tmp29_ = {0};
+ DBusMessageIter _tmp30_;
+ dbus_message_iter_recurse (&_tmp26_, &_tmp27_);
+ dbus_message_iter_get_basic (&_tmp27_, &_tmp28_);
+ dbus_message_iter_next (&_tmp27_);
+ _key = g_strdup (_tmp28_);
+ dbus_message_iter_recurse (&_tmp27_, &_tmp30_);
+ if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_BYTE) {
+ guint8 _tmp31_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp31_);
+ g_value_init (&_tmp29_, G_TYPE_UCHAR);
+ g_value_set_uchar (&_tmp29_, _tmp31_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_BOOLEAN) {
+ dbus_bool_t _tmp32_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp32_);
+ g_value_init (&_tmp29_, G_TYPE_BOOLEAN);
+ g_value_set_boolean (&_tmp29_, _tmp32_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_INT16) {
+ dbus_int16_t _tmp33_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp33_);
+ g_value_init (&_tmp29_, G_TYPE_INT);
+ g_value_set_int (&_tmp29_, _tmp33_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_UINT16) {
+ dbus_uint16_t _tmp34_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp34_);
+ g_value_init (&_tmp29_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp29_, _tmp34_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_INT32) {
+ dbus_int32_t _tmp35_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp35_);
+ g_value_init (&_tmp29_, G_TYPE_INT);
+ g_value_set_int (&_tmp29_, _tmp35_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_UINT32) {
+ dbus_uint32_t _tmp36_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp36_);
+ g_value_init (&_tmp29_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp29_, _tmp36_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_INT64) {
+ dbus_int64_t _tmp37_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp37_);
+ g_value_init (&_tmp29_, G_TYPE_INT64);
+ g_value_set_int64 (&_tmp29_, _tmp37_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_UINT64) {
+ dbus_uint64_t _tmp38_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp38_);
+ g_value_init (&_tmp29_, G_TYPE_UINT64);
+ g_value_set_uint64 (&_tmp29_, _tmp38_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_DOUBLE) {
+ double _tmp39_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp39_);
+ g_value_init (&_tmp29_, G_TYPE_DOUBLE);
+ g_value_set_double (&_tmp29_, _tmp39_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_STRING) {
+ const char* _tmp40_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp40_);
+ g_value_init (&_tmp29_, G_TYPE_STRING);
+ g_value_take_string (&_tmp29_, g_strdup (_tmp40_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_OBJECT_PATH) {
+ const char* _tmp41_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp41_);
+ g_value_init (&_tmp29_, G_TYPE_STRING);
+ g_value_take_string (&_tmp29_, g_strdup (_tmp41_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_SIGNATURE) {
+ const char* _tmp42_;
+ dbus_message_iter_get_basic (&_tmp30_, &_tmp42_);
+ g_value_init (&_tmp29_, G_TYPE_STRING);
+ g_value_take_string (&_tmp29_, g_strdup (_tmp42_));
+ } else if ((dbus_message_iter_get_arg_type (&_tmp30_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp30_) == DBUS_TYPE_STRING)) {
+ const char** _tmp43_;
+ int _tmp43__length;
+ int _tmp43__size;
+ int _tmp43__length1;
+ DBusMessageIter _tmp44_;
+ _tmp43_ = g_new (const char*, 5);
+ _tmp43__length = 0;
+ _tmp43__size = 4;
+ _tmp43__length1 = 0;
+ dbus_message_iter_recurse (&_tmp30_, &_tmp44_);
+ for (; dbus_message_iter_get_arg_type (&_tmp44_); _tmp43__length1++) {
+ const char* _tmp45_;
+ if (_tmp43__size == _tmp43__length) {
+ _tmp43__size = 2 * _tmp43__size;
+ _tmp43_ = g_renew (const char*, _tmp43_, _tmp43__size + 1);
}
- dbus_message_iter_get_basic (&_tmp96_, &_tmp97_);
- dbus_message_iter_next (&_tmp96_);
- _tmp95_[_tmp95__length++] = g_strdup (_tmp97_);
+ dbus_message_iter_get_basic (&_tmp44_, &_tmp45_);
+ dbus_message_iter_next (&_tmp44_);
+ _tmp43_[_tmp43__length++] = g_strdup (_tmp45_);
}
- _tmp95_[_tmp95__length] = NULL;
- g_value_init (&_tmp81_, G_TYPE_STRV);
- g_value_take_boxed (&_tmp81_, _tmp95_);
+ _tmp43_[_tmp43__length] = NULL;
+ g_value_init (&_tmp29_, G_TYPE_STRV);
+ g_value_take_boxed (&_tmp29_, _tmp43_);
}
- dbus_message_iter_next (&_tmp79_);
- _value = g_memdup (&_tmp81_, sizeof (GValue));
- g_hash_table_insert (_tmp77_, _key, _value);
- dbus_message_iter_next (&_tmp78_);
+ dbus_message_iter_next (&_tmp27_);
+ _value = g_memdup (&_tmp29_, sizeof (GValue));
+ g_hash_table_insert (_tmp25_, _key, _value);
+ dbus_message_iter_next (&_tmp26_);
}
dbus_message_iter_next (&subiter);
- value = _tmp77_;
+ value = _tmp25_;
mpris_player_set_Metadata (self, value);
_g_hash_table_unref0 (value);
} else if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "Position") == 0)) {
gint32 value;
- dbus_int32_t _tmp98_;
- dbus_message_iter_get_basic (&subiter, &_tmp98_);
+ dbus_int32_t _tmp46_;
+ dbus_message_iter_get_basic (&subiter, &_tmp46_);
dbus_message_iter_next (&subiter);
- value = _tmp98_;
+ value = _tmp46_;
mpris_player_set_Position (self, value);
} else if ((strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) && (strcmp (property_name, "PlaybackStatus") == 0)) {
char* value;
- const char* _tmp99_;
- dbus_message_iter_get_basic (&subiter, &_tmp99_);
+ const char* _tmp47_;
+ dbus_message_iter_get_basic (&subiter, &_tmp47_);
dbus_message_iter_next (&subiter);
- value = g_strdup (_tmp99_);
+ value = g_strdup (_tmp47_);
mpris_player_set_PlaybackStatus (self, value);
_g_free0 (value);
} else {
@@ -2234,7 +2221,7 @@ static DBusHandlerResult _dbus_mpris_player_property_get_all (MprisPlayer* self,
DBusMessage* reply;
DBusMessageIter iter, reply_iter, subiter, entry_iter, value_iter;
char* interface_name;
- const char* _tmp100_;
+ const char* _tmp48_;
const char* property_name;
if (strcmp (dbus_message_get_signature (message), "s")) {
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -2242,127 +2229,127 @@ static DBusHandlerResult _dbus_mpris_player_property_get_all (MprisPlayer* self,
dbus_message_iter_init (message, &iter);
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &reply_iter);
- dbus_message_iter_get_basic (&iter, &_tmp100_);
+ dbus_message_iter_get_basic (&iter, &_tmp48_);
dbus_message_iter_next (&iter);
- interface_name = g_strdup (_tmp100_);
+ interface_name = g_strdup (_tmp48_);
if (strcmp (interface_name, "org.mpris.MediaPlayer2.Player") == 0) {
dbus_message_iter_open_container (&reply_iter, DBUS_TYPE_ARRAY, "{sv}", &subiter);
{
GHashTable* result;
- DBusMessageIter _tmp101_, _tmp102_;
- GHashTableIter _tmp103_;
- gpointer _tmp104_, _tmp105_;
+ DBusMessageIter _tmp49_, _tmp50_;
+ GHashTableIter _tmp51_;
+ gpointer _tmp52_, _tmp53_;
dbus_message_iter_open_container (&subiter, DBUS_TYPE_DICT_ENTRY, NULL, &entry_iter);
property_name = "Metadata";
dbus_message_iter_append_basic (&entry_iter, DBUS_TYPE_STRING, &property_name);
dbus_message_iter_open_container (&entry_iter, DBUS_TYPE_VARIANT, "a{sv}", &value_iter);
result = mpris_player_get_Metadata (self);
- dbus_message_iter_open_container (&value_iter, DBUS_TYPE_ARRAY, "{sv}", &_tmp101_);
- g_hash_table_iter_init (&_tmp103_, result);
- while (g_hash_table_iter_next (&_tmp103_, &_tmp104_, &_tmp105_)) {
+ dbus_message_iter_open_container (&value_iter, DBUS_TYPE_ARRAY, "{sv}", &_tmp49_);
+ g_hash_table_iter_init (&_tmp51_, result);
+ while (g_hash_table_iter_next (&_tmp51_, &_tmp52_, &_tmp53_)) {
char* _key;
GValue* _value;
- const char* _tmp106_;
- DBusMessageIter _tmp107_;
- dbus_message_iter_open_container (&_tmp101_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp102_);
- _key = (char*) _tmp104_;
- _value = (GValue*) _tmp105_;
- _tmp106_ = _key;
- dbus_message_iter_append_basic (&_tmp102_, DBUS_TYPE_STRING, &_tmp106_);
+ const char* _tmp54_;
+ DBusMessageIter _tmp55_;
+ dbus_message_iter_open_container (&_tmp49_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp50_);
+ _key = (char*) _tmp52_;
+ _value = (GValue*) _tmp53_;
+ _tmp54_ = _key;
+ dbus_message_iter_append_basic (&_tmp50_, DBUS_TYPE_STRING, &_tmp54_);
if (G_VALUE_TYPE (_value) == G_TYPE_UCHAR) {
- guint8 _tmp108_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "y", &_tmp107_);
- _tmp108_ = g_value_get_uchar (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_BYTE, &_tmp108_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ guint8 _tmp56_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "y", &_tmp55_);
+ _tmp56_ = g_value_get_uchar (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_BYTE, &_tmp56_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_BOOLEAN) {
- dbus_bool_t _tmp109_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "b", &_tmp107_);
- _tmp109_ = g_value_get_boolean (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_BOOLEAN, &_tmp109_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_bool_t _tmp57_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "b", &_tmp55_);
+ _tmp57_ = g_value_get_boolean (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_BOOLEAN, &_tmp57_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT) {
- dbus_int32_t _tmp110_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "i", &_tmp107_);
- _tmp110_ = g_value_get_int (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_INT32, &_tmp110_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_int32_t _tmp58_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "i", &_tmp55_);
+ _tmp58_ = g_value_get_int (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_INT32, &_tmp58_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT) {
- dbus_uint32_t _tmp111_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "u", &_tmp107_);
- _tmp111_ = g_value_get_uint (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_UINT32, &_tmp111_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_uint32_t _tmp59_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "u", &_tmp55_);
+ _tmp59_ = g_value_get_uint (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_UINT32, &_tmp59_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT64) {
- dbus_int64_t _tmp112_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "x", &_tmp107_);
- _tmp112_ = g_value_get_int64 (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_INT64, &_tmp112_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_int64_t _tmp60_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "x", &_tmp55_);
+ _tmp60_ = g_value_get_int64 (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_INT64, &_tmp60_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT64) {
- dbus_uint64_t _tmp113_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "t", &_tmp107_);
- _tmp113_ = g_value_get_uint64 (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_UINT64, &_tmp113_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_uint64_t _tmp61_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "t", &_tmp55_);
+ _tmp61_ = g_value_get_uint64 (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_UINT64, &_tmp61_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_DOUBLE) {
- double _tmp114_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "d", &_tmp107_);
- _tmp114_ = g_value_get_double (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_DOUBLE, &_tmp114_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ double _tmp62_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "d", &_tmp55_);
+ _tmp62_ = g_value_get_double (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_DOUBLE, &_tmp62_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRING) {
- const char* _tmp115_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "s", &_tmp107_);
- _tmp115_ = g_value_get_string (_value);
- dbus_message_iter_append_basic (&_tmp107_, DBUS_TYPE_STRING, &_tmp115_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ const char* _tmp63_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "s", &_tmp55_);
+ _tmp63_ = g_value_get_string (_value);
+ dbus_message_iter_append_basic (&_tmp55_, DBUS_TYPE_STRING, &_tmp63_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRV) {
- const char** _tmp116_;
- DBusMessageIter _tmp117_;
- int _tmp118_;
- dbus_message_iter_open_container (&_tmp102_, DBUS_TYPE_VARIANT, "as", &_tmp107_);
- _tmp116_ = g_value_get_boxed (_value);
- dbus_message_iter_open_container (&_tmp107_, DBUS_TYPE_ARRAY, "s", &_tmp117_);
- for (_tmp118_ = 0; _tmp118_ < g_strv_length (g_value_get_boxed (_value)); _tmp118_++) {
- const char* _tmp119_;
- _tmp119_ = *_tmp116_;
- dbus_message_iter_append_basic (&_tmp117_, DBUS_TYPE_STRING, &_tmp119_);
- _tmp116_++;
+ const char** _tmp64_;
+ DBusMessageIter _tmp65_;
+ int _tmp66_;
+ dbus_message_iter_open_container (&_tmp50_, DBUS_TYPE_VARIANT, "as", &_tmp55_);
+ _tmp64_ = g_value_get_boxed (_value);
+ dbus_message_iter_open_container (&_tmp55_, DBUS_TYPE_ARRAY, "s", &_tmp65_);
+ for (_tmp66_ = 0; _tmp66_ < g_strv_length (g_value_get_boxed (_value)); _tmp66_++) {
+ const char* _tmp67_;
+ _tmp67_ = *_tmp64_;
+ dbus_message_iter_append_basic (&_tmp65_, DBUS_TYPE_STRING, &_tmp67_);
+ _tmp64_++;
}
- dbus_message_iter_close_container (&_tmp107_, &_tmp117_);
- dbus_message_iter_close_container (&_tmp102_, &_tmp107_);
+ dbus_message_iter_close_container (&_tmp55_, &_tmp65_);
+ dbus_message_iter_close_container (&_tmp50_, &_tmp55_);
}
- dbus_message_iter_close_container (&_tmp101_, &_tmp102_);
+ dbus_message_iter_close_container (&_tmp49_, &_tmp50_);
}
- dbus_message_iter_close_container (&value_iter, &_tmp101_);
+ dbus_message_iter_close_container (&value_iter, &_tmp49_);
_g_hash_table_unref0 (result);
dbus_message_iter_close_container (&entry_iter, &value_iter);
dbus_message_iter_close_container (&subiter, &entry_iter);
}
{
gint32 result;
- dbus_int32_t _tmp120_;
+ dbus_int32_t _tmp68_;
dbus_message_iter_open_container (&subiter, DBUS_TYPE_DICT_ENTRY, NULL, &entry_iter);
property_name = "Position";
dbus_message_iter_append_basic (&entry_iter, DBUS_TYPE_STRING, &property_name);
dbus_message_iter_open_container (&entry_iter, DBUS_TYPE_VARIANT, "i", &value_iter);
result = mpris_player_get_Position (self);
- _tmp120_ = result;
- dbus_message_iter_append_basic (&value_iter, DBUS_TYPE_INT32, &_tmp120_);
+ _tmp68_ = result;
+ dbus_message_iter_append_basic (&value_iter, DBUS_TYPE_INT32, &_tmp68_);
dbus_message_iter_close_container (&entry_iter, &value_iter);
dbus_message_iter_close_container (&subiter, &entry_iter);
}
{
char* result;
- const char* _tmp121_;
+ const char* _tmp69_;
dbus_message_iter_open_container (&subiter, DBUS_TYPE_DICT_ENTRY, NULL, &entry_iter);
property_name = "PlaybackStatus";
dbus_message_iter_append_basic (&entry_iter, DBUS_TYPE_STRING, &property_name);
dbus_message_iter_open_container (&entry_iter, DBUS_TYPE_VARIANT, "s", &value_iter);
result = mpris_player_get_PlaybackStatus (self);
- _tmp121_ = result;
- dbus_message_iter_append_basic (&value_iter, DBUS_TYPE_STRING, &_tmp121_);
+ _tmp69_ = result;
+ dbus_message_iter_append_basic (&value_iter, DBUS_TYPE_STRING, &_tmp69_);
_g_free0 (result);
dbus_message_iter_close_container (&entry_iter, &value_iter);
dbus_message_iter_close_container (&subiter, &entry_iter);
@@ -2387,21 +2374,21 @@ static DBusHandlerResult _dbus_mpris_player_SetPosition (MprisPlayer* self, DBus
DBusMessageIter iter;
GError* error;
char* path = NULL;
- const char* _tmp122_;
+ const char* _tmp70_;
gint64 pos = 0LL;
- dbus_int64_t _tmp123_;
+ dbus_int64_t _tmp71_;
DBusMessage* reply;
error = NULL;
if (strcmp (dbus_message_get_signature (message), "ox")) {
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
dbus_message_iter_init (message, &iter);
- dbus_message_iter_get_basic (&iter, &_tmp122_);
+ dbus_message_iter_get_basic (&iter, &_tmp70_);
dbus_message_iter_next (&iter);
- path = g_strdup (_tmp122_);
- dbus_message_iter_get_basic (&iter, &_tmp123_);
+ path = g_strdup (_tmp70_);
+ dbus_message_iter_get_basic (&iter, &_tmp71_);
dbus_message_iter_next (&iter);
- pos = _tmp123_;
+ pos = _tmp71_;
mpris_player_SetPosition (self, path, pos, &error);
if (error) {
if (error->domain == DBUS_GERROR) {
@@ -3078,12 +3065,12 @@ static void _dbus_mpris_player_seeked (GObject* _sender, gint64 new_position, DB
const char * _path;
DBusMessage *_message;
DBusMessageIter _iter;
- dbus_int64_t _tmp124_;
+ dbus_int64_t _tmp72_;
_path = g_object_get_data (_sender, "dbus_object_path");
_message = dbus_message_new_signal (_path, "org.mpris.MediaPlayer2.Player", "Seeked");
dbus_message_iter_init_append (_message, &_iter);
- _tmp124_ = new_position;
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_INT64, &_tmp124_);
+ _tmp72_ = new_position;
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_INT64, &_tmp72_);
dbus_connection_send (_connection, _message, NULL);
dbus_message_unref (_message);
}
@@ -3155,15 +3142,15 @@ static GObject* mpris_player_dbus_proxy_construct (GType gtype, guint n_properti
static void _dbus_handle_mpris_player_seeked (MprisPlayer* self, DBusConnection* connection, DBusMessage* message) {
DBusMessageIter iter;
gint64 new_position = 0LL;
- dbus_int64_t _tmp125_;
+ dbus_int64_t _tmp32_;
DBusMessage* reply;
if (strcmp (dbus_message_get_signature (message), "x")) {
return;
}
dbus_message_iter_init (message, &iter);
- dbus_message_iter_get_basic (&iter, &_tmp125_);
+ dbus_message_iter_get_basic (&iter, &_tmp32_);
dbus_message_iter_next (&iter);
- new_position = _tmp125_;
+ new_position = _tmp32_;
g_signal_emit_by_name (self, "seeked", new_position);
}
@@ -3210,18 +3197,18 @@ static void mpris_player_dbus_proxy_SetPosition (MprisPlayer* self, const char*
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter;
- const char* _tmp126_;
- dbus_int64_t _tmp127_;
+ const char* _tmp33_;
+ dbus_int64_t _tmp34_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
g_set_error (error, DBUS_GERROR, DBUS_GERROR_DISCONNECTED, "%s", "Connection is closed");
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.mpris.MediaPlayer2.Player", "SetPosition");
dbus_message_iter_init_append (_message, &_iter);
- _tmp126_ = path;
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_OBJECT_PATH, &_tmp126_);
- _tmp127_ = pos;
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_INT64, &_tmp127_);
+ _tmp33_ = path;
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_OBJECT_PATH, &_tmp33_);
+ _tmp34_ = pos;
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_INT64, &_tmp34_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -3231,74 +3218,74 @@ static void mpris_player_dbus_proxy_SetPosition (MprisPlayer* self, const char*
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp128_;
+ const char* _tmp35_;
_edomain = DBUS_GERROR;
- _tmp128_ = _dbus_error.name + 27;
- if (strcmp (_tmp128_, "Failed") == 0) {
+ _tmp35_ = _dbus_error.name + 27;
+ if (strcmp (_tmp35_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp128_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp35_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp128_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp35_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp128_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp35_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp128_, "NoReply") == 0) {
+ } else if (strcmp (_tmp35_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp128_, "IOError") == 0) {
+ } else if (strcmp (_tmp35_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp128_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp35_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp128_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp35_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp128_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp35_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp128_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp35_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp128_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp35_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp128_, "NoServer") == 0) {
+ } else if (strcmp (_tmp35_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp128_, "Timeout") == 0) {
+ } else if (strcmp (_tmp35_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp128_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp35_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp128_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp35_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp128_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp35_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp128_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp35_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp128_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp35_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp128_, "FileExists") == 0) {
+ } else if (strcmp (_tmp35_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp128_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp35_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp128_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp35_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp128_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp35_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp128_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp35_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp128_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp35_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp128_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp35_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp128_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp35_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp128_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp35_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp128_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp35_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp128_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp35_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp128_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp35_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp128_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp35_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp128_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp35_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp128_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp35_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -3336,74 +3323,74 @@ static void mpris_player_dbus_proxy_PlayPause (MprisPlayer* self, GError** error
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp129_;
+ const char* _tmp36_;
_edomain = DBUS_GERROR;
- _tmp129_ = _dbus_error.name + 27;
- if (strcmp (_tmp129_, "Failed") == 0) {
+ _tmp36_ = _dbus_error.name + 27;
+ if (strcmp (_tmp36_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp129_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp36_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp129_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp36_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp129_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp36_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp129_, "NoReply") == 0) {
+ } else if (strcmp (_tmp36_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp129_, "IOError") == 0) {
+ } else if (strcmp (_tmp36_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp129_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp36_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp129_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp36_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp129_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp36_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp129_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp36_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp129_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp36_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp129_, "NoServer") == 0) {
+ } else if (strcmp (_tmp36_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp129_, "Timeout") == 0) {
+ } else if (strcmp (_tmp36_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp129_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp36_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp129_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp36_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp129_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp36_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp129_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp36_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp129_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp36_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp129_, "FileExists") == 0) {
+ } else if (strcmp (_tmp36_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp129_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp36_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp129_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp36_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp129_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp36_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp129_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp36_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp129_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp36_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp129_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp36_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp129_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp36_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp129_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp36_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp129_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp36_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp129_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp36_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp129_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp36_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp129_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp36_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp129_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp36_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp129_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp36_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -3441,74 +3428,74 @@ static void mpris_player_dbus_proxy_Pause (MprisPlayer* self, GError** error) {
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp130_;
+ const char* _tmp37_;
_edomain = DBUS_GERROR;
- _tmp130_ = _dbus_error.name + 27;
- if (strcmp (_tmp130_, "Failed") == 0) {
+ _tmp37_ = _dbus_error.name + 27;
+ if (strcmp (_tmp37_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp130_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp37_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp130_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp37_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp130_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp37_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp130_, "NoReply") == 0) {
+ } else if (strcmp (_tmp37_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp130_, "IOError") == 0) {
+ } else if (strcmp (_tmp37_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp130_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp37_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp130_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp37_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp130_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp37_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp130_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp37_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp130_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp37_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp130_, "NoServer") == 0) {
+ } else if (strcmp (_tmp37_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp130_, "Timeout") == 0) {
+ } else if (strcmp (_tmp37_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp130_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp37_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp130_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp37_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp130_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp37_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp130_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp37_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp130_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp37_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp130_, "FileExists") == 0) {
+ } else if (strcmp (_tmp37_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp130_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp37_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp130_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp37_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp130_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp37_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp130_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp37_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp130_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp37_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp130_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp37_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp130_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp37_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp130_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp37_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp130_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp37_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp130_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp37_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp130_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp37_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp130_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp37_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp130_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp37_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp130_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp37_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -3546,74 +3533,74 @@ static void mpris_player_dbus_proxy_Next (MprisPlayer* self, GError** error) {
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp131_;
+ const char* _tmp38_;
_edomain = DBUS_GERROR;
- _tmp131_ = _dbus_error.name + 27;
- if (strcmp (_tmp131_, "Failed") == 0) {
+ _tmp38_ = _dbus_error.name + 27;
+ if (strcmp (_tmp38_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp131_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp38_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp131_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp38_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp131_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp38_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp131_, "NoReply") == 0) {
+ } else if (strcmp (_tmp38_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp131_, "IOError") == 0) {
+ } else if (strcmp (_tmp38_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp131_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp38_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp131_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp38_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp131_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp38_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp131_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp38_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp131_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp38_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp131_, "NoServer") == 0) {
+ } else if (strcmp (_tmp38_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp131_, "Timeout") == 0) {
+ } else if (strcmp (_tmp38_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp131_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp38_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp131_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp38_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp131_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp38_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp131_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp38_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp131_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp38_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp131_, "FileExists") == 0) {
+ } else if (strcmp (_tmp38_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp131_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp38_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp131_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp38_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp131_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp38_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp131_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp38_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp131_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp38_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp131_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp38_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp131_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp38_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp131_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp38_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp131_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp38_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp131_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp38_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp131_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp38_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp131_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp38_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp131_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp38_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp131_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp38_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -3651,74 +3638,74 @@ static void mpris_player_dbus_proxy_Previous (MprisPlayer* self, GError** error)
GQuark _edomain;
gint _ecode;
if (strstr (_dbus_error.name, "org.freedesktop.DBus.Error") == _dbus_error.name) {
- const char* _tmp132_;
+ const char* _tmp39_;
_edomain = DBUS_GERROR;
- _tmp132_ = _dbus_error.name + 27;
- if (strcmp (_tmp132_, "Failed") == 0) {
+ _tmp39_ = _dbus_error.name + 27;
+ if (strcmp (_tmp39_, "Failed") == 0) {
_ecode = DBUS_GERROR_FAILED;
- } else if (strcmp (_tmp132_, "NoMemory") == 0) {
+ } else if (strcmp (_tmp39_, "NoMemory") == 0) {
_ecode = DBUS_GERROR_NO_MEMORY;
- } else if (strcmp (_tmp132_, "ServiceUnknown") == 0) {
+ } else if (strcmp (_tmp39_, "ServiceUnknown") == 0) {
_ecode = DBUS_GERROR_SERVICE_UNKNOWN;
- } else if (strcmp (_tmp132_, "NameHasNoOwner") == 0) {
+ } else if (strcmp (_tmp39_, "NameHasNoOwner") == 0) {
_ecode = DBUS_GERROR_NAME_HAS_NO_OWNER;
- } else if (strcmp (_tmp132_, "NoReply") == 0) {
+ } else if (strcmp (_tmp39_, "NoReply") == 0) {
_ecode = DBUS_GERROR_NO_REPLY;
- } else if (strcmp (_tmp132_, "IOError") == 0) {
+ } else if (strcmp (_tmp39_, "IOError") == 0) {
_ecode = DBUS_GERROR_IO_ERROR;
- } else if (strcmp (_tmp132_, "BadAddress") == 0) {
+ } else if (strcmp (_tmp39_, "BadAddress") == 0) {
_ecode = DBUS_GERROR_BAD_ADDRESS;
- } else if (strcmp (_tmp132_, "NotSupported") == 0) {
+ } else if (strcmp (_tmp39_, "NotSupported") == 0) {
_ecode = DBUS_GERROR_NOT_SUPPORTED;
- } else if (strcmp (_tmp132_, "LimitsExceeded") == 0) {
+ } else if (strcmp (_tmp39_, "LimitsExceeded") == 0) {
_ecode = DBUS_GERROR_LIMITS_EXCEEDED;
- } else if (strcmp (_tmp132_, "AccessDenied") == 0) {
+ } else if (strcmp (_tmp39_, "AccessDenied") == 0) {
_ecode = DBUS_GERROR_ACCESS_DENIED;
- } else if (strcmp (_tmp132_, "AuthFailed") == 0) {
+ } else if (strcmp (_tmp39_, "AuthFailed") == 0) {
_ecode = DBUS_GERROR_AUTH_FAILED;
- } else if (strcmp (_tmp132_, "NoServer") == 0) {
+ } else if (strcmp (_tmp39_, "NoServer") == 0) {
_ecode = DBUS_GERROR_NO_SERVER;
- } else if (strcmp (_tmp132_, "Timeout") == 0) {
+ } else if (strcmp (_tmp39_, "Timeout") == 0) {
_ecode = DBUS_GERROR_TIMEOUT;
- } else if (strcmp (_tmp132_, "NoNetwork") == 0) {
+ } else if (strcmp (_tmp39_, "NoNetwork") == 0) {
_ecode = DBUS_GERROR_NO_NETWORK;
- } else if (strcmp (_tmp132_, "AddressInUse") == 0) {
+ } else if (strcmp (_tmp39_, "AddressInUse") == 0) {
_ecode = DBUS_GERROR_ADDRESS_IN_USE;
- } else if (strcmp (_tmp132_, "Disconnected") == 0) {
+ } else if (strcmp (_tmp39_, "Disconnected") == 0) {
_ecode = DBUS_GERROR_DISCONNECTED;
- } else if (strcmp (_tmp132_, "InvalidArgs") == 0) {
+ } else if (strcmp (_tmp39_, "InvalidArgs") == 0) {
_ecode = DBUS_GERROR_INVALID_ARGS;
- } else if (strcmp (_tmp132_, "FileNotFound") == 0) {
+ } else if (strcmp (_tmp39_, "FileNotFound") == 0) {
_ecode = DBUS_GERROR_FILE_NOT_FOUND;
- } else if (strcmp (_tmp132_, "FileExists") == 0) {
+ } else if (strcmp (_tmp39_, "FileExists") == 0) {
_ecode = DBUS_GERROR_FILE_EXISTS;
- } else if (strcmp (_tmp132_, "UnknownMethod") == 0) {
+ } else if (strcmp (_tmp39_, "UnknownMethod") == 0) {
_ecode = DBUS_GERROR_UNKNOWN_METHOD;
- } else if (strcmp (_tmp132_, "TimedOut") == 0) {
+ } else if (strcmp (_tmp39_, "TimedOut") == 0) {
_ecode = DBUS_GERROR_TIMED_OUT;
- } else if (strcmp (_tmp132_, "MatchRuleNotFound") == 0) {
+ } else if (strcmp (_tmp39_, "MatchRuleNotFound") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_NOT_FOUND;
- } else if (strcmp (_tmp132_, "MatchRuleInvalid") == 0) {
+ } else if (strcmp (_tmp39_, "MatchRuleInvalid") == 0) {
_ecode = DBUS_GERROR_MATCH_RULE_INVALID;
- } else if (strcmp (_tmp132_, "Spawn.ExecFailed") == 0) {
+ } else if (strcmp (_tmp39_, "Spawn.ExecFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_EXEC_FAILED;
- } else if (strcmp (_tmp132_, "Spawn.ForkFailed") == 0) {
+ } else if (strcmp (_tmp39_, "Spawn.ForkFailed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FORK_FAILED;
- } else if (strcmp (_tmp132_, "Spawn.ChildExited") == 0) {
+ } else if (strcmp (_tmp39_, "Spawn.ChildExited") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_EXITED;
- } else if (strcmp (_tmp132_, "Spawn.ChildSignaled") == 0) {
+ } else if (strcmp (_tmp39_, "Spawn.ChildSignaled") == 0) {
_ecode = DBUS_GERROR_SPAWN_CHILD_SIGNALED;
- } else if (strcmp (_tmp132_, "Spawn.Failed") == 0) {
+ } else if (strcmp (_tmp39_, "Spawn.Failed") == 0) {
_ecode = DBUS_GERROR_SPAWN_FAILED;
- } else if (strcmp (_tmp132_, "UnixProcessIdUnknown") == 0) {
+ } else if (strcmp (_tmp39_, "UnixProcessIdUnknown") == 0) {
_ecode = DBUS_GERROR_UNIX_PROCESS_ID_UNKNOWN;
- } else if (strcmp (_tmp132_, "InvalidSignature") == 0) {
+ } else if (strcmp (_tmp39_, "InvalidSignature") == 0) {
_ecode = DBUS_GERROR_INVALID_SIGNATURE;
- } else if (strcmp (_tmp132_, "InvalidFileContent") == 0) {
+ } else if (strcmp (_tmp39_, "InvalidFileContent") == 0) {
_ecode = DBUS_GERROR_INVALID_FILE_CONTENT;
- } else if (strcmp (_tmp132_, "SELinuxSecurityContextUnknown") == 0) {
+ } else if (strcmp (_tmp39_, "SELinuxSecurityContextUnknown") == 0) {
_ecode = DBUS_GERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN;
- } else if (strcmp (_tmp132_, "RemoteException") == 0) {
+ } else if (strcmp (_tmp39_, "RemoteException") == 0) {
_ecode = DBUS_GERROR_REMOTE_EXCEPTION;
}
}
@@ -3741,21 +3728,21 @@ static GHashTable* mpris_player_dbus_proxy_get_Metadata (MprisPlayer* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp133_;
- const char* _tmp134_;
+ const char* _tmp40_;
+ const char* _tmp41_;
GHashTable* _result;
- GHashTable* _tmp135_;
- DBusMessageIter _tmp136_;
- DBusMessageIter _tmp137_;
+ GHashTable* _tmp42_;
+ DBusMessageIter _tmp43_;
+ DBusMessageIter _tmp44_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return NULL;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp133_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp133_);
- _tmp134_ = "Metadata";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp134_);
+ _tmp40_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp40_);
+ _tmp41_ = "Metadata";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp41_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -3778,111 +3765,111 @@ static GHashTable* mpris_player_dbus_proxy_get_Metadata (MprisPlayer* self) {
dbus_message_unref (_reply);
return NULL;
}
- _tmp135_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
- dbus_message_iter_recurse (&_subiter, &_tmp136_);
- while (dbus_message_iter_get_arg_type (&_tmp136_)) {
+ _tmp42_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
+ dbus_message_iter_recurse (&_subiter, &_tmp43_);
+ while (dbus_message_iter_get_arg_type (&_tmp43_)) {
char* _key;
GValue* _value;
- const char* _tmp138_;
- GValue _tmp139_ = {0};
- DBusMessageIter _tmp140_;
- dbus_message_iter_recurse (&_tmp136_, &_tmp137_);
- dbus_message_iter_get_basic (&_tmp137_, &_tmp138_);
- dbus_message_iter_next (&_tmp137_);
- _key = g_strdup (_tmp138_);
- dbus_message_iter_recurse (&_tmp137_, &_tmp140_);
- if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_BYTE) {
- guint8 _tmp141_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp141_);
- g_value_init (&_tmp139_, G_TYPE_UCHAR);
- g_value_set_uchar (&_tmp139_, _tmp141_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_BOOLEAN) {
- dbus_bool_t _tmp142_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp142_);
- g_value_init (&_tmp139_, G_TYPE_BOOLEAN);
- g_value_set_boolean (&_tmp139_, _tmp142_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_INT16) {
- dbus_int16_t _tmp143_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp143_);
- g_value_init (&_tmp139_, G_TYPE_INT);
- g_value_set_int (&_tmp139_, _tmp143_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_UINT16) {
- dbus_uint16_t _tmp144_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp144_);
- g_value_init (&_tmp139_, G_TYPE_UINT);
- g_value_set_uint (&_tmp139_, _tmp144_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_INT32) {
- dbus_int32_t _tmp145_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp145_);
- g_value_init (&_tmp139_, G_TYPE_INT);
- g_value_set_int (&_tmp139_, _tmp145_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_UINT32) {
- dbus_uint32_t _tmp146_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp146_);
- g_value_init (&_tmp139_, G_TYPE_UINT);
- g_value_set_uint (&_tmp139_, _tmp146_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_INT64) {
- dbus_int64_t _tmp147_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp147_);
- g_value_init (&_tmp139_, G_TYPE_INT64);
- g_value_set_int64 (&_tmp139_, _tmp147_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_UINT64) {
- dbus_uint64_t _tmp148_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp148_);
- g_value_init (&_tmp139_, G_TYPE_UINT64);
- g_value_set_uint64 (&_tmp139_, _tmp148_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_DOUBLE) {
- double _tmp149_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp149_);
- g_value_init (&_tmp139_, G_TYPE_DOUBLE);
- g_value_set_double (&_tmp139_, _tmp149_);
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_STRING) {
- const char* _tmp150_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp150_);
- g_value_init (&_tmp139_, G_TYPE_STRING);
- g_value_take_string (&_tmp139_, g_strdup (_tmp150_));
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_OBJECT_PATH) {
- const char* _tmp151_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp151_);
- g_value_init (&_tmp139_, G_TYPE_STRING);
- g_value_take_string (&_tmp139_, g_strdup (_tmp151_));
- } else if (dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_SIGNATURE) {
- const char* _tmp152_;
- dbus_message_iter_get_basic (&_tmp140_, &_tmp152_);
- g_value_init (&_tmp139_, G_TYPE_STRING);
- g_value_take_string (&_tmp139_, g_strdup (_tmp152_));
- } else if ((dbus_message_iter_get_arg_type (&_tmp140_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp140_) == DBUS_TYPE_STRING)) {
- const char** _tmp153_;
- int _tmp153__length;
- int _tmp153__size;
- int _tmp153__length1;
- DBusMessageIter _tmp154_;
- _tmp153_ = g_new (const char*, 5);
- _tmp153__length = 0;
- _tmp153__size = 4;
- _tmp153__length1 = 0;
- dbus_message_iter_recurse (&_tmp140_, &_tmp154_);
- for (; dbus_message_iter_get_arg_type (&_tmp154_); _tmp153__length1++) {
- const char* _tmp155_;
- if (_tmp153__size == _tmp153__length) {
- _tmp153__size = 2 * _tmp153__size;
- _tmp153_ = g_renew (const char*, _tmp153_, _tmp153__size + 1);
+ const char* _tmp45_;
+ GValue _tmp46_ = {0};
+ DBusMessageIter _tmp47_;
+ dbus_message_iter_recurse (&_tmp43_, &_tmp44_);
+ dbus_message_iter_get_basic (&_tmp44_, &_tmp45_);
+ dbus_message_iter_next (&_tmp44_);
+ _key = g_strdup (_tmp45_);
+ dbus_message_iter_recurse (&_tmp44_, &_tmp47_);
+ if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_BYTE) {
+ guint8 _tmp48_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp48_);
+ g_value_init (&_tmp46_, G_TYPE_UCHAR);
+ g_value_set_uchar (&_tmp46_, _tmp48_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_BOOLEAN) {
+ dbus_bool_t _tmp49_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp49_);
+ g_value_init (&_tmp46_, G_TYPE_BOOLEAN);
+ g_value_set_boolean (&_tmp46_, _tmp49_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_INT16) {
+ dbus_int16_t _tmp50_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp50_);
+ g_value_init (&_tmp46_, G_TYPE_INT);
+ g_value_set_int (&_tmp46_, _tmp50_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_UINT16) {
+ dbus_uint16_t _tmp51_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp51_);
+ g_value_init (&_tmp46_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp46_, _tmp51_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_INT32) {
+ dbus_int32_t _tmp52_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp52_);
+ g_value_init (&_tmp46_, G_TYPE_INT);
+ g_value_set_int (&_tmp46_, _tmp52_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_UINT32) {
+ dbus_uint32_t _tmp53_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp53_);
+ g_value_init (&_tmp46_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp46_, _tmp53_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_INT64) {
+ dbus_int64_t _tmp54_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp54_);
+ g_value_init (&_tmp46_, G_TYPE_INT64);
+ g_value_set_int64 (&_tmp46_, _tmp54_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_UINT64) {
+ dbus_uint64_t _tmp55_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp55_);
+ g_value_init (&_tmp46_, G_TYPE_UINT64);
+ g_value_set_uint64 (&_tmp46_, _tmp55_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_DOUBLE) {
+ double _tmp56_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp56_);
+ g_value_init (&_tmp46_, G_TYPE_DOUBLE);
+ g_value_set_double (&_tmp46_, _tmp56_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_STRING) {
+ const char* _tmp57_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp57_);
+ g_value_init (&_tmp46_, G_TYPE_STRING);
+ g_value_take_string (&_tmp46_, g_strdup (_tmp57_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_OBJECT_PATH) {
+ const char* _tmp58_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp58_);
+ g_value_init (&_tmp46_, G_TYPE_STRING);
+ g_value_take_string (&_tmp46_, g_strdup (_tmp58_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_SIGNATURE) {
+ const char* _tmp59_;
+ dbus_message_iter_get_basic (&_tmp47_, &_tmp59_);
+ g_value_init (&_tmp46_, G_TYPE_STRING);
+ g_value_take_string (&_tmp46_, g_strdup (_tmp59_));
+ } else if ((dbus_message_iter_get_arg_type (&_tmp47_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp47_) == DBUS_TYPE_STRING)) {
+ const char** _tmp60_;
+ int _tmp60__length;
+ int _tmp60__size;
+ int _tmp60__length1;
+ DBusMessageIter _tmp61_;
+ _tmp60_ = g_new (const char*, 5);
+ _tmp60__length = 0;
+ _tmp60__size = 4;
+ _tmp60__length1 = 0;
+ dbus_message_iter_recurse (&_tmp47_, &_tmp61_);
+ for (; dbus_message_iter_get_arg_type (&_tmp61_); _tmp60__length1++) {
+ const char* _tmp62_;
+ if (_tmp60__size == _tmp60__length) {
+ _tmp60__size = 2 * _tmp60__size;
+ _tmp60_ = g_renew (const char*, _tmp60_, _tmp60__size + 1);
}
- dbus_message_iter_get_basic (&_tmp154_, &_tmp155_);
- dbus_message_iter_next (&_tmp154_);
- _tmp153_[_tmp153__length++] = g_strdup (_tmp155_);
+ dbus_message_iter_get_basic (&_tmp61_, &_tmp62_);
+ dbus_message_iter_next (&_tmp61_);
+ _tmp60_[_tmp60__length++] = g_strdup (_tmp62_);
}
- _tmp153_[_tmp153__length] = NULL;
- g_value_init (&_tmp139_, G_TYPE_STRV);
- g_value_take_boxed (&_tmp139_, _tmp153_);
+ _tmp60_[_tmp60__length] = NULL;
+ g_value_init (&_tmp46_, G_TYPE_STRV);
+ g_value_take_boxed (&_tmp46_, _tmp60_);
}
- dbus_message_iter_next (&_tmp137_);
- _value = g_memdup (&_tmp139_, sizeof (GValue));
- g_hash_table_insert (_tmp135_, _key, _value);
- dbus_message_iter_next (&_tmp136_);
+ dbus_message_iter_next (&_tmp44_);
+ _value = g_memdup (&_tmp46_, sizeof (GValue));
+ g_hash_table_insert (_tmp42_, _key, _value);
+ dbus_message_iter_next (&_tmp43_);
}
dbus_message_iter_next (&_subiter);
- _result = _tmp135_;
+ _result = _tmp42_;
dbus_message_unref (_reply);
return _result;
}
@@ -3893,100 +3880,100 @@ static void mpris_player_dbus_proxy_set_Metadata (MprisPlayer* self, GHashTable*
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp156_;
- const char* _tmp157_;
- DBusMessageIter _tmp158_, _tmp159_;
- GHashTableIter _tmp160_;
- gpointer _tmp161_, _tmp162_;
+ const char* _tmp63_;
+ const char* _tmp64_;
+ DBusMessageIter _tmp65_, _tmp66_;
+ GHashTableIter _tmp67_;
+ gpointer _tmp68_, _tmp69_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp156_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp156_);
- _tmp157_ = "Metadata";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp157_);
+ _tmp63_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp63_);
+ _tmp64_ = "Metadata";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp64_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "a{sv}", &_subiter);
- dbus_message_iter_open_container (&_subiter, DBUS_TYPE_ARRAY, "{sv}", &_tmp158_);
- g_hash_table_iter_init (&_tmp160_, value);
- while (g_hash_table_iter_next (&_tmp160_, &_tmp161_, &_tmp162_)) {
+ dbus_message_iter_open_container (&_subiter, DBUS_TYPE_ARRAY, "{sv}", &_tmp65_);
+ g_hash_table_iter_init (&_tmp67_, value);
+ while (g_hash_table_iter_next (&_tmp67_, &_tmp68_, &_tmp69_)) {
char* _key;
GValue* _value;
- const char* _tmp163_;
- DBusMessageIter _tmp164_;
- dbus_message_iter_open_container (&_tmp158_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp159_);
- _key = (char*) _tmp161_;
- _value = (GValue*) _tmp162_;
- _tmp163_ = _key;
- dbus_message_iter_append_basic (&_tmp159_, DBUS_TYPE_STRING, &_tmp163_);
+ const char* _tmp70_;
+ DBusMessageIter _tmp71_;
+ dbus_message_iter_open_container (&_tmp65_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp66_);
+ _key = (char*) _tmp68_;
+ _value = (GValue*) _tmp69_;
+ _tmp70_ = _key;
+ dbus_message_iter_append_basic (&_tmp66_, DBUS_TYPE_STRING, &_tmp70_);
if (G_VALUE_TYPE (_value) == G_TYPE_UCHAR) {
- guint8 _tmp165_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "y", &_tmp164_);
- _tmp165_ = g_value_get_uchar (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_BYTE, &_tmp165_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ guint8 _tmp72_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "y", &_tmp71_);
+ _tmp72_ = g_value_get_uchar (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_BYTE, &_tmp72_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_BOOLEAN) {
- dbus_bool_t _tmp166_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "b", &_tmp164_);
- _tmp166_ = g_value_get_boolean (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_BOOLEAN, &_tmp166_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_bool_t _tmp73_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "b", &_tmp71_);
+ _tmp73_ = g_value_get_boolean (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_BOOLEAN, &_tmp73_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT) {
- dbus_int32_t _tmp167_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "i", &_tmp164_);
- _tmp167_ = g_value_get_int (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_INT32, &_tmp167_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_int32_t _tmp74_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "i", &_tmp71_);
+ _tmp74_ = g_value_get_int (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_INT32, &_tmp74_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT) {
- dbus_uint32_t _tmp168_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "u", &_tmp164_);
- _tmp168_ = g_value_get_uint (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_UINT32, &_tmp168_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_uint32_t _tmp75_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "u", &_tmp71_);
+ _tmp75_ = g_value_get_uint (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_UINT32, &_tmp75_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT64) {
- dbus_int64_t _tmp169_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "x", &_tmp164_);
- _tmp169_ = g_value_get_int64 (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_INT64, &_tmp169_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_int64_t _tmp76_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "x", &_tmp71_);
+ _tmp76_ = g_value_get_int64 (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_INT64, &_tmp76_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT64) {
- dbus_uint64_t _tmp170_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "t", &_tmp164_);
- _tmp170_ = g_value_get_uint64 (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_UINT64, &_tmp170_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_uint64_t _tmp77_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "t", &_tmp71_);
+ _tmp77_ = g_value_get_uint64 (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_UINT64, &_tmp77_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_DOUBLE) {
- double _tmp171_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "d", &_tmp164_);
- _tmp171_ = g_value_get_double (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_DOUBLE, &_tmp171_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ double _tmp78_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "d", &_tmp71_);
+ _tmp78_ = g_value_get_double (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_DOUBLE, &_tmp78_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRING) {
- const char* _tmp172_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "s", &_tmp164_);
- _tmp172_ = g_value_get_string (_value);
- dbus_message_iter_append_basic (&_tmp164_, DBUS_TYPE_STRING, &_tmp172_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ const char* _tmp79_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "s", &_tmp71_);
+ _tmp79_ = g_value_get_string (_value);
+ dbus_message_iter_append_basic (&_tmp71_, DBUS_TYPE_STRING, &_tmp79_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRV) {
- const char** _tmp173_;
- DBusMessageIter _tmp174_;
- int _tmp175_;
- dbus_message_iter_open_container (&_tmp159_, DBUS_TYPE_VARIANT, "as", &_tmp164_);
- _tmp173_ = g_value_get_boxed (_value);
- dbus_message_iter_open_container (&_tmp164_, DBUS_TYPE_ARRAY, "s", &_tmp174_);
- for (_tmp175_ = 0; _tmp175_ < g_strv_length (g_value_get_boxed (_value)); _tmp175_++) {
- const char* _tmp176_;
- _tmp176_ = *_tmp173_;
- dbus_message_iter_append_basic (&_tmp174_, DBUS_TYPE_STRING, &_tmp176_);
- _tmp173_++;
+ const char** _tmp80_;
+ DBusMessageIter _tmp81_;
+ int _tmp82_;
+ dbus_message_iter_open_container (&_tmp66_, DBUS_TYPE_VARIANT, "as", &_tmp71_);
+ _tmp80_ = g_value_get_boxed (_value);
+ dbus_message_iter_open_container (&_tmp71_, DBUS_TYPE_ARRAY, "s", &_tmp81_);
+ for (_tmp82_ = 0; _tmp82_ < g_strv_length (g_value_get_boxed (_value)); _tmp82_++) {
+ const char* _tmp83_;
+ _tmp83_ = *_tmp80_;
+ dbus_message_iter_append_basic (&_tmp81_, DBUS_TYPE_STRING, &_tmp83_);
+ _tmp80_++;
}
- dbus_message_iter_close_container (&_tmp164_, &_tmp174_);
- dbus_message_iter_close_container (&_tmp159_, &_tmp164_);
+ dbus_message_iter_close_container (&_tmp71_, &_tmp81_);
+ dbus_message_iter_close_container (&_tmp66_, &_tmp71_);
}
- dbus_message_iter_close_container (&_tmp158_, &_tmp159_);
+ dbus_message_iter_close_container (&_tmp65_, &_tmp66_);
}
- dbus_message_iter_close_container (&_subiter, &_tmp158_);
+ dbus_message_iter_close_container (&_subiter, &_tmp65_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -4013,19 +4000,19 @@ static gint32 mpris_player_dbus_proxy_get_Position (MprisPlayer* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp177_;
- const char* _tmp178_;
+ const char* _tmp84_;
+ const char* _tmp85_;
gint32 _result;
- dbus_int32_t _tmp179_;
+ dbus_int32_t _tmp86_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return 0;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp177_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp177_);
- _tmp178_ = "Position";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp178_);
+ _tmp84_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp84_);
+ _tmp85_ = "Position";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp85_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -4048,9 +4035,9 @@ static gint32 mpris_player_dbus_proxy_get_Position (MprisPlayer* self) {
dbus_message_unref (_reply);
return 0;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp179_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp86_);
dbus_message_iter_next (&_subiter);
- _result = _tmp179_;
+ _result = _tmp86_;
dbus_message_unref (_reply);
return _result;
}
@@ -4061,21 +4048,21 @@ static void mpris_player_dbus_proxy_set_Position (MprisPlayer* self, gint32 valu
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp180_;
- const char* _tmp181_;
- dbus_int32_t _tmp182_;
+ const char* _tmp87_;
+ const char* _tmp88_;
+ dbus_int32_t _tmp89_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp180_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp180_);
- _tmp181_ = "Position";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp181_);
+ _tmp87_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp87_);
+ _tmp88_ = "Position";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp88_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "i", &_subiter);
- _tmp182_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_INT32, &_tmp182_);
+ _tmp89_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_INT32, &_tmp89_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -4102,19 +4089,19 @@ static char* mpris_player_dbus_proxy_get_PlaybackStatus (MprisPlayer* self) {
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp183_;
- const char* _tmp184_;
+ const char* _tmp90_;
+ const char* _tmp91_;
char* _result;
- const char* _tmp185_;
+ const char* _tmp92_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return NULL;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Get");
dbus_message_iter_init_append (_message, &_iter);
- _tmp183_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp183_);
- _tmp184_ = "PlaybackStatus";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp184_);
+ _tmp90_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp90_);
+ _tmp91_ = "PlaybackStatus";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp91_);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
_reply = dbus_connection_send_with_reply_and_block (dbus_g_connection_get_connection (_connection), _message, -1, &_dbus_error);
@@ -4137,9 +4124,9 @@ static char* mpris_player_dbus_proxy_get_PlaybackStatus (MprisPlayer* self) {
dbus_message_unref (_reply);
return NULL;
}
- dbus_message_iter_get_basic (&_subiter, &_tmp185_);
+ dbus_message_iter_get_basic (&_subiter, &_tmp92_);
dbus_message_iter_next (&_subiter);
- _result = g_strdup (_tmp185_);
+ _result = g_strdup (_tmp92_);
dbus_message_unref (_reply);
return _result;
}
@@ -4150,21 +4137,21 @@ static void mpris_player_dbus_proxy_set_PlaybackStatus (MprisPlayer* self, const
DBusGConnection *_connection;
DBusMessage *_message, *_reply;
DBusMessageIter _iter, _subiter;
- const char* _tmp186_;
- const char* _tmp187_;
- const char* _tmp188_;
+ const char* _tmp93_;
+ const char* _tmp94_;
+ const char* _tmp95_;
if (((MprisPlayerDBusProxy*) self)->disposed) {
return;
}
_message = dbus_message_new_method_call (dbus_g_proxy_get_bus_name ((DBusGProxy*) self), dbus_g_proxy_get_path ((DBusGProxy*) self), "org.freedesktop.DBus.Properties", "Set");
dbus_message_iter_init_append (_message, &_iter);
- _tmp186_ = "org.mpris.MediaPlayer2.Player";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp186_);
- _tmp187_ = "PlaybackStatus";
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp187_);
+ _tmp93_ = "org.mpris.MediaPlayer2.Player";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp93_);
+ _tmp94_ = "PlaybackStatus";
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp94_);
dbus_message_iter_open_container (&_iter, DBUS_TYPE_VARIANT, "s", &_subiter);
- _tmp188_ = value;
- dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp188_);
+ _tmp95_ = value;
+ dbus_message_iter_append_basic (&_subiter, DBUS_TYPE_STRING, &_tmp95_);
dbus_message_iter_close_container (&_iter, &_subiter);
g_object_get (self, "connection", &_connection, NULL);
dbus_error_init (&_dbus_error);
@@ -4245,16 +4232,16 @@ static DBusHandlerResult _dbus_free_desktop_properties_property_get_all (FreeDes
DBusMessage* reply;
DBusMessageIter iter, reply_iter, subiter;
char* interface_name;
- const char* _tmp189_;
+ const char* _tmp0_;
if (strcmp (dbus_message_get_signature (message), "s")) {
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
dbus_message_iter_init (message, &iter);
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &reply_iter);
- dbus_message_iter_get_basic (&iter, &_tmp189_);
+ dbus_message_iter_get_basic (&iter, &_tmp0_);
dbus_message_iter_next (&iter);
- interface_name = g_strdup (_tmp189_);
+ interface_name = g_strdup (_tmp0_);
if (strcmp (interface_name, "org.freedesktop.DBus.Properties") == 0) {
dbus_message_iter_open_container (&reply_iter, DBUS_TYPE_ARRAY, "{sv}", &subiter);
dbus_message_iter_close_container (&reply_iter, &subiter);
@@ -4293,106 +4280,106 @@ static void _dbus_free_desktop_properties_properties_changed (GObject* _sender,
const char * _path;
DBusMessage *_message;
DBusMessageIter _iter;
- const char* _tmp190_;
- DBusMessageIter _tmp191_, _tmp192_;
- GHashTableIter _tmp193_;
- gpointer _tmp194_, _tmp195_;
- char** _tmp210_;
- DBusMessageIter _tmp211_;
- int _tmp212_;
+ const char* _tmp1_;
+ DBusMessageIter _tmp2_, _tmp3_;
+ GHashTableIter _tmp4_;
+ gpointer _tmp5_, _tmp6_;
+ char** _tmp21_;
+ DBusMessageIter _tmp22_;
+ int _tmp23_;
_path = g_object_get_data (_sender, "dbus_object_path");
_message = dbus_message_new_signal (_path, "org.freedesktop.DBus.Properties", "PropertiesChanged");
dbus_message_iter_init_append (_message, &_iter);
- _tmp190_ = source;
- dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp190_);
- dbus_message_iter_open_container (&_iter, DBUS_TYPE_ARRAY, "{sv}", &_tmp191_);
- g_hash_table_iter_init (&_tmp193_, changed_properties);
- while (g_hash_table_iter_next (&_tmp193_, &_tmp194_, &_tmp195_)) {
+ _tmp1_ = source;
+ dbus_message_iter_append_basic (&_iter, DBUS_TYPE_STRING, &_tmp1_);
+ dbus_message_iter_open_container (&_iter, DBUS_TYPE_ARRAY, "{sv}", &_tmp2_);
+ g_hash_table_iter_init (&_tmp4_, changed_properties);
+ while (g_hash_table_iter_next (&_tmp4_, &_tmp5_, &_tmp6_)) {
char* _key;
GValue* _value;
- const char* _tmp196_;
- DBusMessageIter _tmp197_;
- dbus_message_iter_open_container (&_tmp191_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp192_);
- _key = (char*) _tmp194_;
- _value = (GValue*) _tmp195_;
- _tmp196_ = _key;
- dbus_message_iter_append_basic (&_tmp192_, DBUS_TYPE_STRING, &_tmp196_);
+ const char* _tmp7_;
+ DBusMessageIter _tmp8_;
+ dbus_message_iter_open_container (&_tmp2_, DBUS_TYPE_DICT_ENTRY, NULL, &_tmp3_);
+ _key = (char*) _tmp5_;
+ _value = (GValue*) _tmp6_;
+ _tmp7_ = _key;
+ dbus_message_iter_append_basic (&_tmp3_, DBUS_TYPE_STRING, &_tmp7_);
if (G_VALUE_TYPE (_value) == G_TYPE_UCHAR) {
- guint8 _tmp198_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "y", &_tmp197_);
- _tmp198_ = g_value_get_uchar (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_BYTE, &_tmp198_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ guint8 _tmp9_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "y", &_tmp8_);
+ _tmp9_ = g_value_get_uchar (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_BYTE, &_tmp9_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_BOOLEAN) {
- dbus_bool_t _tmp199_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "b", &_tmp197_);
- _tmp199_ = g_value_get_boolean (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_BOOLEAN, &_tmp199_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_bool_t _tmp10_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "b", &_tmp8_);
+ _tmp10_ = g_value_get_boolean (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_BOOLEAN, &_tmp10_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT) {
- dbus_int32_t _tmp200_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "i", &_tmp197_);
- _tmp200_ = g_value_get_int (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_INT32, &_tmp200_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_int32_t _tmp11_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "i", &_tmp8_);
+ _tmp11_ = g_value_get_int (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_INT32, &_tmp11_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT) {
- dbus_uint32_t _tmp201_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "u", &_tmp197_);
- _tmp201_ = g_value_get_uint (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_UINT32, &_tmp201_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_uint32_t _tmp12_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "u", &_tmp8_);
+ _tmp12_ = g_value_get_uint (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_UINT32, &_tmp12_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_INT64) {
- dbus_int64_t _tmp202_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "x", &_tmp197_);
- _tmp202_ = g_value_get_int64 (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_INT64, &_tmp202_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_int64_t _tmp13_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "x", &_tmp8_);
+ _tmp13_ = g_value_get_int64 (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_INT64, &_tmp13_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_UINT64) {
- dbus_uint64_t _tmp203_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "t", &_tmp197_);
- _tmp203_ = g_value_get_uint64 (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_UINT64, &_tmp203_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_uint64_t _tmp14_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "t", &_tmp8_);
+ _tmp14_ = g_value_get_uint64 (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_UINT64, &_tmp14_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_DOUBLE) {
- double _tmp204_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "d", &_tmp197_);
- _tmp204_ = g_value_get_double (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_DOUBLE, &_tmp204_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ double _tmp15_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "d", &_tmp8_);
+ _tmp15_ = g_value_get_double (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_DOUBLE, &_tmp15_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRING) {
- const char* _tmp205_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "s", &_tmp197_);
- _tmp205_ = g_value_get_string (_value);
- dbus_message_iter_append_basic (&_tmp197_, DBUS_TYPE_STRING, &_tmp205_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ const char* _tmp16_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "s", &_tmp8_);
+ _tmp16_ = g_value_get_string (_value);
+ dbus_message_iter_append_basic (&_tmp8_, DBUS_TYPE_STRING, &_tmp16_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
} else if (G_VALUE_TYPE (_value) == G_TYPE_STRV) {
- const char** _tmp206_;
- DBusMessageIter _tmp207_;
- int _tmp208_;
- dbus_message_iter_open_container (&_tmp192_, DBUS_TYPE_VARIANT, "as", &_tmp197_);
- _tmp206_ = g_value_get_boxed (_value);
- dbus_message_iter_open_container (&_tmp197_, DBUS_TYPE_ARRAY, "s", &_tmp207_);
- for (_tmp208_ = 0; _tmp208_ < g_strv_length (g_value_get_boxed (_value)); _tmp208_++) {
- const char* _tmp209_;
- _tmp209_ = *_tmp206_;
- dbus_message_iter_append_basic (&_tmp207_, DBUS_TYPE_STRING, &_tmp209_);
- _tmp206_++;
+ const char** _tmp17_;
+ DBusMessageIter _tmp18_;
+ int _tmp19_;
+ dbus_message_iter_open_container (&_tmp3_, DBUS_TYPE_VARIANT, "as", &_tmp8_);
+ _tmp17_ = g_value_get_boxed (_value);
+ dbus_message_iter_open_container (&_tmp8_, DBUS_TYPE_ARRAY, "s", &_tmp18_);
+ for (_tmp19_ = 0; _tmp19_ < g_strv_length (g_value_get_boxed (_value)); _tmp19_++) {
+ const char* _tmp20_;
+ _tmp20_ = *_tmp17_;
+ dbus_message_iter_append_basic (&_tmp18_, DBUS_TYPE_STRING, &_tmp20_);
+ _tmp17_++;
}
- dbus_message_iter_close_container (&_tmp197_, &_tmp207_);
- dbus_message_iter_close_container (&_tmp192_, &_tmp197_);
+ dbus_message_iter_close_container (&_tmp8_, &_tmp18_);
+ dbus_message_iter_close_container (&_tmp3_, &_tmp8_);
}
- dbus_message_iter_close_container (&_tmp191_, &_tmp192_);
- }
- dbus_message_iter_close_container (&_iter, &_tmp191_);
- _tmp210_ = invalid;
- dbus_message_iter_open_container (&_iter, DBUS_TYPE_ARRAY, "s", &_tmp211_);
- for (_tmp212_ = 0; _tmp212_ < invalid_length1; _tmp212_++) {
- const char* _tmp213_;
- _tmp213_ = *_tmp210_;
- dbus_message_iter_append_basic (&_tmp211_, DBUS_TYPE_STRING, &_tmp213_);
- _tmp210_++;
- }
- dbus_message_iter_close_container (&_iter, &_tmp211_);
+ dbus_message_iter_close_container (&_tmp2_, &_tmp3_);
+ }
+ dbus_message_iter_close_container (&_iter, &_tmp2_);
+ _tmp21_ = invalid;
+ dbus_message_iter_open_container (&_iter, DBUS_TYPE_ARRAY, "s", &_tmp22_);
+ for (_tmp23_ = 0; _tmp23_ < invalid_length1; _tmp23_++) {
+ const char* _tmp24_;
+ _tmp24_ = *_tmp21_;
+ dbus_message_iter_append_basic (&_tmp22_, DBUS_TYPE_STRING, &_tmp24_);
+ _tmp21_++;
+ }
+ dbus_message_iter_close_container (&_iter, &_tmp22_);
dbus_connection_send (_connection, _message, NULL);
dbus_message_unref (_message);
}
@@ -4461,151 +4448,151 @@ static GObject* free_desktop_properties_dbus_proxy_construct (GType gtype, guint
static void _dbus_handle_free_desktop_properties_properties_changed (FreeDesktopProperties* self, DBusConnection* connection, DBusMessage* message) {
DBusMessageIter iter;
char* source = NULL;
- const char* _tmp214_;
+ const char* _tmp96_;
GHashTable* changed_properties = NULL;
- GHashTable* _tmp215_;
- DBusMessageIter _tmp216_;
- DBusMessageIter _tmp217_;
+ GHashTable* _tmp97_;
+ DBusMessageIter _tmp98_;
+ DBusMessageIter _tmp99_;
char** invalid = NULL;
int invalid_length1;
- char** _tmp236_;
- int _tmp236__length;
- int _tmp236__size;
- int _tmp236__length1;
- DBusMessageIter _tmp237_;
+ char** _tmp118_;
+ int _tmp118__length;
+ int _tmp118__size;
+ int _tmp118__length1;
+ DBusMessageIter _tmp119_;
DBusMessage* reply;
if (strcmp (dbus_message_get_signature (message), "sa{sv}as")) {
return;
}
dbus_message_iter_init (message, &iter);
- dbus_message_iter_get_basic (&iter, &_tmp214_);
+ dbus_message_iter_get_basic (&iter, &_tmp96_);
dbus_message_iter_next (&iter);
- source = g_strdup (_tmp214_);
- _tmp215_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
- dbus_message_iter_recurse (&iter, &_tmp216_);
- while (dbus_message_iter_get_arg_type (&_tmp216_)) {
+ source = g_strdup (_tmp96_);
+ _tmp97_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
+ dbus_message_iter_recurse (&iter, &_tmp98_);
+ while (dbus_message_iter_get_arg_type (&_tmp98_)) {
char* _key;
GValue* _value;
- const char* _tmp218_;
- GValue _tmp219_ = {0};
- DBusMessageIter _tmp220_;
- dbus_message_iter_recurse (&_tmp216_, &_tmp217_);
- dbus_message_iter_get_basic (&_tmp217_, &_tmp218_);
- dbus_message_iter_next (&_tmp217_);
- _key = g_strdup (_tmp218_);
- dbus_message_iter_recurse (&_tmp217_, &_tmp220_);
- if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_BYTE) {
- guint8 _tmp221_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp221_);
- g_value_init (&_tmp219_, G_TYPE_UCHAR);
- g_value_set_uchar (&_tmp219_, _tmp221_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_BOOLEAN) {
- dbus_bool_t _tmp222_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp222_);
- g_value_init (&_tmp219_, G_TYPE_BOOLEAN);
- g_value_set_boolean (&_tmp219_, _tmp222_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_INT16) {
- dbus_int16_t _tmp223_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp223_);
- g_value_init (&_tmp219_, G_TYPE_INT);
- g_value_set_int (&_tmp219_, _tmp223_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_UINT16) {
- dbus_uint16_t _tmp224_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp224_);
- g_value_init (&_tmp219_, G_TYPE_UINT);
- g_value_set_uint (&_tmp219_, _tmp224_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_INT32) {
- dbus_int32_t _tmp225_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp225_);
- g_value_init (&_tmp219_, G_TYPE_INT);
- g_value_set_int (&_tmp219_, _tmp225_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_UINT32) {
- dbus_uint32_t _tmp226_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp226_);
- g_value_init (&_tmp219_, G_TYPE_UINT);
- g_value_set_uint (&_tmp219_, _tmp226_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_INT64) {
- dbus_int64_t _tmp227_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp227_);
- g_value_init (&_tmp219_, G_TYPE_INT64);
- g_value_set_int64 (&_tmp219_, _tmp227_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_UINT64) {
- dbus_uint64_t _tmp228_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp228_);
- g_value_init (&_tmp219_, G_TYPE_UINT64);
- g_value_set_uint64 (&_tmp219_, _tmp228_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_DOUBLE) {
- double _tmp229_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp229_);
- g_value_init (&_tmp219_, G_TYPE_DOUBLE);
- g_value_set_double (&_tmp219_, _tmp229_);
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_STRING) {
- const char* _tmp230_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp230_);
- g_value_init (&_tmp219_, G_TYPE_STRING);
- g_value_take_string (&_tmp219_, g_strdup (_tmp230_));
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_OBJECT_PATH) {
- const char* _tmp231_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp231_);
- g_value_init (&_tmp219_, G_TYPE_STRING);
- g_value_take_string (&_tmp219_, g_strdup (_tmp231_));
- } else if (dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_SIGNATURE) {
- const char* _tmp232_;
- dbus_message_iter_get_basic (&_tmp220_, &_tmp232_);
- g_value_init (&_tmp219_, G_TYPE_STRING);
- g_value_take_string (&_tmp219_, g_strdup (_tmp232_));
- } else if ((dbus_message_iter_get_arg_type (&_tmp220_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp220_) == DBUS_TYPE_STRING)) {
- const char** _tmp233_;
- int _tmp233__length;
- int _tmp233__size;
- int _tmp233__length1;
- DBusMessageIter _tmp234_;
- _tmp233_ = g_new (const char*, 5);
- _tmp233__length = 0;
- _tmp233__size = 4;
- _tmp233__length1 = 0;
- dbus_message_iter_recurse (&_tmp220_, &_tmp234_);
- for (; dbus_message_iter_get_arg_type (&_tmp234_); _tmp233__length1++) {
- const char* _tmp235_;
- if (_tmp233__size == _tmp233__length) {
- _tmp233__size = 2 * _tmp233__size;
- _tmp233_ = g_renew (const char*, _tmp233_, _tmp233__size + 1);
+ const char* _tmp100_;
+ GValue _tmp101_ = {0};
+ DBusMessageIter _tmp102_;
+ dbus_message_iter_recurse (&_tmp98_, &_tmp99_);
+ dbus_message_iter_get_basic (&_tmp99_, &_tmp100_);
+ dbus_message_iter_next (&_tmp99_);
+ _key = g_strdup (_tmp100_);
+ dbus_message_iter_recurse (&_tmp99_, &_tmp102_);
+ if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_BYTE) {
+ guint8 _tmp103_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp103_);
+ g_value_init (&_tmp101_, G_TYPE_UCHAR);
+ g_value_set_uchar (&_tmp101_, _tmp103_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_BOOLEAN) {
+ dbus_bool_t _tmp104_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp104_);
+ g_value_init (&_tmp101_, G_TYPE_BOOLEAN);
+ g_value_set_boolean (&_tmp101_, _tmp104_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_INT16) {
+ dbus_int16_t _tmp105_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp105_);
+ g_value_init (&_tmp101_, G_TYPE_INT);
+ g_value_set_int (&_tmp101_, _tmp105_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_UINT16) {
+ dbus_uint16_t _tmp106_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp106_);
+ g_value_init (&_tmp101_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp101_, _tmp106_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_INT32) {
+ dbus_int32_t _tmp107_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp107_);
+ g_value_init (&_tmp101_, G_TYPE_INT);
+ g_value_set_int (&_tmp101_, _tmp107_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_UINT32) {
+ dbus_uint32_t _tmp108_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp108_);
+ g_value_init (&_tmp101_, G_TYPE_UINT);
+ g_value_set_uint (&_tmp101_, _tmp108_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_INT64) {
+ dbus_int64_t _tmp109_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp109_);
+ g_value_init (&_tmp101_, G_TYPE_INT64);
+ g_value_set_int64 (&_tmp101_, _tmp109_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_UINT64) {
+ dbus_uint64_t _tmp110_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp110_);
+ g_value_init (&_tmp101_, G_TYPE_UINT64);
+ g_value_set_uint64 (&_tmp101_, _tmp110_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_DOUBLE) {
+ double _tmp111_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp111_);
+ g_value_init (&_tmp101_, G_TYPE_DOUBLE);
+ g_value_set_double (&_tmp101_, _tmp111_);
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_STRING) {
+ const char* _tmp112_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp112_);
+ g_value_init (&_tmp101_, G_TYPE_STRING);
+ g_value_take_string (&_tmp101_, g_strdup (_tmp112_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_OBJECT_PATH) {
+ const char* _tmp113_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp113_);
+ g_value_init (&_tmp101_, G_TYPE_STRING);
+ g_value_take_string (&_tmp101_, g_strdup (_tmp113_));
+ } else if (dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_SIGNATURE) {
+ const char* _tmp114_;
+ dbus_message_iter_get_basic (&_tmp102_, &_tmp114_);
+ g_value_init (&_tmp101_, G_TYPE_STRING);
+ g_value_take_string (&_tmp101_, g_strdup (_tmp114_));
+ } else if ((dbus_message_iter_get_arg_type (&_tmp102_) == DBUS_TYPE_ARRAY) && (dbus_message_iter_get_element_type (&_tmp102_) == DBUS_TYPE_STRING)) {
+ const char** _tmp115_;
+ int _tmp115__length;
+ int _tmp115__size;
+ int _tmp115__length1;
+ DBusMessageIter _tmp116_;
+ _tmp115_ = g_new (const char*, 5);
+ _tmp115__length = 0;
+ _tmp115__size = 4;
+ _tmp115__length1 = 0;
+ dbus_message_iter_recurse (&_tmp102_, &_tmp116_);
+ for (; dbus_message_iter_get_arg_type (&_tmp116_); _tmp115__length1++) {
+ const char* _tmp117_;
+ if (_tmp115__size == _tmp115__length) {
+ _tmp115__size = 2 * _tmp115__size;
+ _tmp115_ = g_renew (const char*, _tmp115_, _tmp115__size + 1);
}
- dbus_message_iter_get_basic (&_tmp234_, &_tmp235_);
- dbus_message_iter_next (&_tmp234_);
- _tmp233_[_tmp233__length++] = g_strdup (_tmp235_);
+ dbus_message_iter_get_basic (&_tmp116_, &_tmp117_);
+ dbus_message_iter_next (&_tmp116_);
+ _tmp115_[_tmp115__length++] = g_strdup (_tmp117_);
}
- _tmp233_[_tmp233__length] = NULL;
- g_value_init (&_tmp219_, G_TYPE_STRV);
- g_value_take_boxed (&_tmp219_, _tmp233_);
+ _tmp115_[_tmp115__length] = NULL;
+ g_value_init (&_tmp101_, G_TYPE_STRV);
+ g_value_take_boxed (&_tmp101_, _tmp115_);
}
- dbus_message_iter_next (&_tmp217_);
- _value = g_memdup (&_tmp219_, sizeof (GValue));
- g_hash_table_insert (_tmp215_, _key, _value);
- dbus_message_iter_next (&_tmp216_);
+ dbus_message_iter_next (&_tmp99_);
+ _value = g_memdup (&_tmp101_, sizeof (GValue));
+ g_hash_table_insert (_tmp97_, _key, _value);
+ dbus_message_iter_next (&_tmp98_);
}
dbus_message_iter_next (&iter);
- changed_properties = _tmp215_;
+ changed_properties = _tmp97_;
invalid_length1 = 0;
- _tmp236_ = g_new (char*, 5);
- _tmp236__length = 0;
- _tmp236__size = 4;
- _tmp236__length1 = 0;
- dbus_message_iter_recurse (&iter, &_tmp237_);
- for (; dbus_message_iter_get_arg_type (&_tmp237_); _tmp236__length1++) {
- const char* _tmp238_;
- if (_tmp236__size == _tmp236__length) {
- _tmp236__size = 2 * _tmp236__size;
- _tmp236_ = g_renew (char*, _tmp236_, _tmp236__size + 1);
+ _tmp118_ = g_new (char*, 5);
+ _tmp118__length = 0;
+ _tmp118__size = 4;
+ _tmp118__length1 = 0;
+ dbus_message_iter_recurse (&iter, &_tmp119_);
+ for (; dbus_message_iter_get_arg_type (&_tmp119_); _tmp118__length1++) {
+ const char* _tmp120_;
+ if (_tmp118__size == _tmp118__length) {
+ _tmp118__size = 2 * _tmp118__size;
+ _tmp118_ = g_renew (char*, _tmp118_, _tmp118__size + 1);
}
- dbus_message_iter_get_basic (&_tmp237_, &_tmp238_);
- dbus_message_iter_next (&_tmp237_);
- _tmp236_[_tmp236__length++] = g_strdup (_tmp238_);
+ dbus_message_iter_get_basic (&_tmp119_, &_tmp120_);
+ dbus_message_iter_next (&_tmp119_);
+ _tmp118_[_tmp118__length++] = g_strdup (_tmp120_);
}
- invalid_length1 = _tmp236__length1;
- _tmp236_[_tmp236__length] = NULL;
+ invalid_length1 = _tmp118__length1;
+ _tmp118_[_tmp118__length] = NULL;
dbus_message_iter_next (&iter);
- invalid = _tmp236_;
+ invalid = _tmp118_;
g_signal_emit_by_name (self, "properties-changed", source, changed_properties, invalid, invalid_length1);
_g_free0 (source);
_g_hash_table_unref0 (changed_properties);
@@ -4690,14 +4677,14 @@ void mpris2_controller_property_changed_cb (Mpris2Controller* self, const char*
g_return_if_fail (self != NULL);
g_return_if_fail (interface_source != NULL);
g_return_if_fail (changed_properties != NULL);
- g_debug ("mpris2-controller.vala:98: properties-changed for interface %s", interface_source);
+ g_debug ("mpris2-controller.vala:99: properties-changed for interface %s", interface_source);
if (changed_properties == NULL) {
_tmp0_ = TRUE;
} else {
_tmp0_ = g_str_has_prefix (interface_source, MPRIS2_CONTROLLER_root_interface) == FALSE;
}
if (_tmp0_) {
- g_warning ("mpris2-controller.vala:100: Property-changed hash is null or this is a" \
+ g_warning ("mpris2-controller.vala:101: Property-changed hash is null or this is a" \
"n interface that concerns us");
return;
}
@@ -4705,77 +4692,36 @@ void mpris2_controller_property_changed_cb (Mpris2Controller* self, const char*
if (play_v != NULL) {
char* state;
gint p;
- TransportMenuitem* _tmp2_;
PlayerItem* _tmp1_;
- ScrubMenuitem* _tmp4_;
- PlayerItem* _tmp3_;
+ TransportMenuitem* _tmp2_;
state = g_strdup (g_value_get_string (play_v));
- g_debug ("mpris2-controller.vala:106: new playback state = %s", state);
+ g_debug ("mpris2-controller.vala:107: new playback state = %s", state);
p = mpris2_controller_determine_play_state (self, state);
transport_menuitem_change_play_state (_tmp2_ = (_tmp1_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_TRANSPORT), IS_TRANSPORT_MENUITEM (_tmp1_) ? ((TransportMenuitem*) _tmp1_) : NULL), p);
_g_object_unref0 (_tmp2_);
- scrub_menuitem_update_playstate (_tmp4_ = (_tmp3_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp3_) ? ((ScrubMenuitem*) _tmp3_) : NULL), p);
- _g_object_unref0 (_tmp4_);
_g_free0 (state);
}
pos_v = __g_value_dup0 ((GValue*) g_hash_table_lookup (changed_properties, "Position"));
if (pos_v != NULL) {
gint64 pos;
- ScrubMenuitem* _tmp6_;
- PlayerItem* _tmp5_;
pos = g_value_get_int64 (pos_v);
g_debug ("mpris2-controller.vala:115: new position = %i", (gint) pos);
- scrub_menuitem_update_position (_tmp6_ = (_tmp5_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp5_) ? ((ScrubMenuitem*) _tmp5_) : NULL), (gint32) pos);
- _g_object_unref0 (_tmp6_);
}
meta_v = __g_value_dup0 ((GValue*) g_hash_table_lookup (changed_properties, "Metadata"));
if (meta_v != NULL) {
- GHashTable* _tmp7_;
- GeeHashSet* _tmp9_;
- PlayerItem* _tmp8_;
- GeeHashSet* _tmp12_;
- GHashTable* _tmp11_;
- PlayerItem* _tmp10_;
- GeeHashSet* _tmp14_;
- PlayerItem* _tmp13_;
- gboolean _tmp15_ = FALSE;
- GHashTable* _tmp16_;
- gboolean _tmp17_;
- char* _tmp24_;
- ScrubMenuitem* _tmp23_;
- PlayerItem* _tmp22_;
- g_debug ("mpris2-controller.vala:121: metadata is not empty");
- g_debug ("mpris2-controller.vala:122: artist : %s", g_value_get_string ((GValue*) g_hash_table_lookup (_tmp7_ = mpris_player_get_Metadata (self->priv->_player), "artist")));
- _g_hash_table_unref0 (_tmp7_);
- player_item_reset (_tmp8_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), _tmp9_ = metadata_menuitem_attributes_format ());
- _g_object_unref0 (_tmp9_);
- _g_object_unref0 (_tmp8_);
- player_item_update (_tmp10_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), _tmp11_ = mpris_player_get_Metadata (self->priv->_player), _tmp12_ = metadata_menuitem_attributes_format ());
- _g_object_unref0 (_tmp12_);
- _g_hash_table_unref0 (_tmp11_);
- _g_object_unref0 (_tmp10_);
- player_item_reset (_tmp13_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp14_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp14_);
- _g_object_unref0 (_tmp13_);
- if ((_tmp17_ = ((gint) g_utf8_strlen (g_value_get_string ((GValue*) g_hash_table_lookup (_tmp16_ = mpris_player_get_Metadata (self->priv->_player), "artist")), -1)) > 0, _g_hash_table_unref0 (_tmp16_), _tmp17_)) {
- _tmp15_ = TRUE;
- } else {
- GHashTable* _tmp18_;
- _tmp15_ = ((gint) g_utf8_strlen (g_value_get_string ((GValue*) g_hash_table_lookup (_tmp18_ = mpris_player_get_Metadata (self->priv->_player), "artist")), -1)) > 0;
- _g_hash_table_unref0 (_tmp18_);
- }
- if (_tmp15_) {
- GeeHashSet* _tmp21_;
- GHashTable* _tmp20_;
- PlayerItem* _tmp19_;
- player_item_update (_tmp19_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp20_ = mpris_player_get_Metadata (self->priv->_player), _tmp21_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp21_);
- _g_hash_table_unref0 (_tmp20_);
- _g_object_unref0 (_tmp19_);
- }
- scrub_menuitem_update_playstate (_tmp23_ = (_tmp22_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp22_) ? ((ScrubMenuitem*) _tmp22_) : NULL), mpris2_controller_determine_play_state (self, _tmp24_ = mpris_player_get_PlaybackStatus (self->priv->_player)));
- _g_free0 (_tmp24_);
- _g_object_unref0 (_tmp23_);
+ GHashTable* changed_updates;
+ PlayerItem* _tmp3_;
+ GeeHashSet* _tmp4_;
+ PlayerItem* _tmp5_;
+ GeeHashSet* _tmp6_;
+ changed_updates = mpris2_controller_clean_metadata (self);
+ player_item_reset (_tmp3_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), _tmp4_ = metadata_menuitem_attributes_format ());
+ _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp3_);
+ player_item_update (_tmp5_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), changed_updates, _tmp6_ = metadata_menuitem_attributes_format ());
+ _g_object_unref0 (_tmp6_);
+ _g_object_unref0 (_tmp5_);
+ _g_hash_table_unref0 (changed_updates);
}
_g_free0 (meta_v);
_g_free0 (pos_v);
@@ -4783,6 +4729,62 @@ void mpris2_controller_property_changed_cb (Mpris2Controller* self, const char*
}
+static char** _vala_array_dup1 (char** self, int length) {
+ char** result;
+ int i;
+ result = g_new0 (char*, length + 1);
+ for (i = 0; i < length; i++) {
+ result[i] = g_strdup (self[i]);
+ }
+ return result;
+}
+
+
+static GHashTable* mpris2_controller_clean_metadata (Mpris2Controller* self) {
+ GHashTable* result = NULL;
+ GHashTable* changed_updates;
+ GHashTable* _tmp0_;
+ GValue* _tmp1_;
+ GValue* artist_v;
+ GHashTable* _tmp7_;
+ GValue* _tmp8_;
+ GValue* length_v;
+ g_return_val_if_fail (self != NULL, NULL);
+ changed_updates = mpris_player_get_Metadata (self->priv->_player);
+ artist_v = (_tmp1_ = __g_value_dup0 ((GValue*) g_hash_table_lookup (_tmp0_ = mpris_player_get_Metadata (self->priv->_player), "xesam:artist")), _g_hash_table_unref0 (_tmp0_), _tmp1_);
+ if (artist_v != NULL) {
+ gint artists_length1;
+ gint _artists_size_;
+ char** _tmp5_;
+ GHashTable* _tmp2_;
+ char** _tmp3_;
+ char** _tmp4_;
+ char** artists;
+ char* display_artists;
+ GValue* _tmp6_ = NULL;
+ artists = (_tmp5_ = (_tmp4_ = (_tmp3_ = g_value_get_boxed ((GValue*) g_hash_table_lookup (_tmp2_ = mpris_player_get_Metadata (self->priv->_player), "xesam:artist")), (_tmp3_ == NULL) ? ((gpointer) _tmp3_) : _vala_array_dup1 (_tmp3_, g_strv_length (g_value_get_boxed ((GValue*) g_hash_table_lookup (_tmp2_ = mpris_player_get_Metadata (self->priv->_player), "xesam:artist"))))), _g_hash_table_unref0 (_tmp2_), _tmp4_), artists_length1 = g_strv_length (g_value_get_boxed ((GValue*) g_hash_table_lookup (_tmp2_ = mpris_player_get_Metadata (self->priv->_player), "xesam:artist"))), _artists_size_ = artists_length1, _tmp5_);
+ display_artists = g_strjoinv (", ", artists);
+ g_hash_table_replace (changed_updates, g_strdup ("xesam:artist"), (_tmp6_ = g_new0 (GValue, 1), g_value_init (_tmp6_, G_TYPE_STRING), g_value_set_string (_tmp6_, display_artists), _tmp6_));
+ g_debug ("mpris2-controller.vala:135: artist : %s", display_artists);
+ _g_free0 (display_artists);
+ artists = (_vala_array_free (artists, artists_length1, (GDestroyNotify) g_free), NULL);
+ }
+ length_v = (_tmp8_ = __g_value_dup0 ((GValue*) g_hash_table_lookup (_tmp7_ = mpris_player_get_Metadata (self->priv->_player), "mpris:length")), _g_hash_table_unref0 (_tmp7_), _tmp8_);
+ if (length_v != NULL) {
+ GHashTable* _tmp9_;
+ gint64 _tmp10_;
+ gint64 duration;
+ GValue* _tmp11_ = NULL;
+ duration = (_tmp10_ = g_value_get_int64 ((GValue*) g_hash_table_lookup (_tmp9_ = mpris_player_get_Metadata (self->priv->_player), "mpris:length")), _g_hash_table_unref0 (_tmp9_), _tmp10_);
+ g_hash_table_replace (changed_updates, g_strdup ("mpris:length"), (_tmp11_ = g_new0 (GValue, 1), g_value_init (_tmp11_, G_TYPE_INT64), g_value_set_int64 (_tmp11_, duration / 1000000), _tmp11_));
+ }
+ result = changed_updates;
+ _g_free0 (length_v);
+ _g_free0 (artist_v);
+ return result;
+}
+
+
static gint mpris2_controller_determine_play_state (Mpris2Controller* self, const char* status) {
gint result = 0;
gboolean _tmp0_ = FALSE;
@@ -4798,7 +4800,7 @@ static gint mpris2_controller_determine_play_state (Mpris2Controller* self, cons
_tmp0_ = FALSE;
}
if (_tmp0_) {
- g_debug ("mpris2-controller.vala:142: determine play state - state = %s", status);
+ g_debug ("mpris2-controller.vala:151: determine play state - state = %s", status);
result = 0;
return result;
}
@@ -4811,14 +4813,11 @@ void mpris2_controller_initial_update (Mpris2Controller* self) {
gint32 status = 0;
char* _tmp0_;
gboolean _tmp1_;
- TransportMenuitem* _tmp4_;
PlayerItem* _tmp3_;
- GeeHashSet* _tmp7_;
- GHashTable* _tmp6_;
+ TransportMenuitem* _tmp4_;
+ GHashTable* cleaned_metadata;
PlayerItem* _tmp5_;
- GeeHashSet* _tmp10_;
- GHashTable* _tmp9_;
- PlayerItem* _tmp8_;
+ GeeHashSet* _tmp6_;
g_return_if_fail (self != NULL);
if ((_tmp1_ = (_tmp0_ = mpris_player_get_PlaybackStatus (self->priv->_player)) == NULL, _g_free0 (_tmp0_), _tmp1_)) {
status = (gint32) 1;
@@ -4827,27 +4826,23 @@ void mpris2_controller_initial_update (Mpris2Controller* self) {
status = (gint32) mpris2_controller_determine_play_state (self, _tmp2_ = mpris_player_get_PlaybackStatus (self->priv->_player));
_g_free0 (_tmp2_);
}
- g_debug ("mpris2-controller.vala:157: initial update - play state %i", (gint) status);
+ g_debug ("mpris2-controller.vala:166: initial update - play state %i", (gint) status);
transport_menuitem_change_play_state (_tmp4_ = (_tmp3_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_TRANSPORT), IS_TRANSPORT_MENUITEM (_tmp3_) ? ((TransportMenuitem*) _tmp3_) : NULL), (gint) status);
_g_object_unref0 (_tmp4_);
- player_item_update (_tmp5_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), _tmp6_ = mpris_player_get_Metadata (self->priv->_player), _tmp7_ = metadata_menuitem_attributes_format ());
- _g_object_unref0 (_tmp7_);
- _g_hash_table_unref0 (_tmp6_);
+ cleaned_metadata = mpris2_controller_clean_metadata (self);
+ player_item_update (_tmp5_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_METADATA), cleaned_metadata, _tmp6_ = metadata_menuitem_attributes_format ());
+ _g_object_unref0 (_tmp6_);
_g_object_unref0 (_tmp5_);
- player_item_update (_tmp8_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), _tmp9_ = mpris_player_get_Metadata (self->priv->_player), _tmp10_ = scrub_menuitem_attributes_format ());
- _g_object_unref0 (_tmp10_);
- _g_hash_table_unref0 (_tmp9_);
- _g_object_unref0 (_tmp8_);
+ _g_hash_table_unref0 (cleaned_metadata);
}
void mpris2_controller_transport_event (Mpris2Controller* self, TransportMenuitemaction command) {
- GError * _inner_error_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
- g_debug ("mpris2-controller.vala:168: transport_event input = %i", (gint) command);
+ g_debug ("mpris2-controller.vala:176: transport_event input = %i", (gint) command);
if (command == TRANSPORT_MENUITEM_ACTION_PLAY_PAUSE) {
- g_debug ("mpris2-controller.vala:170: transport_event PLAY_PAUSE");
+ g_debug ("mpris2-controller.vala:178: transport_event PLAY_PAUSE");
{
mpris_player_PlayPause (self->priv->_player, &_inner_error_);
if (_inner_error_ != NULL) {
@@ -4866,7 +4861,7 @@ void mpris2_controller_transport_event (Mpris2Controller* self, TransportMenuite
_error_ = _inner_error_;
_inner_error_ = NULL;
{
- g_warning ("mpris2-controller.vala:175: DBus Error calling the player objects Play" \
+ g_warning ("mpris2-controller.vala:183: DBus Error calling the player objects Play" \
"Pause method %s", _error_->message);
_g_error_free0 (_error_);
}
@@ -4897,7 +4892,7 @@ void mpris2_controller_transport_event (Mpris2Controller* self, TransportMenuite
_error_ = _inner_error_;
_inner_error_ = NULL;
{
- g_warning ("mpris2-controller.vala:184: DBus Error calling the player objects Prev" \
+ g_warning ("mpris2-controller.vala:192: DBus Error calling the player objects Prev" \
"ious method %s", _error_->message);
_g_error_free0 (_error_);
}
@@ -4928,7 +4923,7 @@ void mpris2_controller_transport_event (Mpris2Controller* self, TransportMenuite
_error_ = _inner_error_;
_inner_error_ = NULL;
{
- g_warning ("mpris2-controller.vala:193: DBus Error calling the player objects Next" \
+ g_warning ("mpris2-controller.vala:201: DBus Error calling the player objects Next" \
" method %s", _error_->message);
_g_error_free0 (_error_);
}
@@ -4950,37 +4945,46 @@ TODO: SetPosition on the player object is not working with rhythmbox,
runtime error - "dbus function not supported"
*/
void mpris2_controller_set_position (Mpris2Controller* self, double position) {
- GError * _inner_error_;
- GHashTable* data;
- GValue* time_value;
- guint32 total_time;
- double new_time_position;
GHashTable* _tmp0_;
GValue* _tmp1_;
+ GValue* time_value;
+ gint64 total_time;
+ double new_time_position;
+ GHashTable* _tmp2_;
+ GValue* _tmp3_;
GValue* v;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
- g_debug ("mpris2-controller.vala:204: Set position with pos (0-100) %f", position);
- data = mpris_player_get_Metadata (self->priv->_player);
- time_value = __g_value_dup0 ((GValue*) g_hash_table_lookup (data, "time"));
+ g_debug ("mpris2-controller.vala:212: Set position with pos (0-100) %f", position);
+ time_value = (_tmp1_ = __g_value_dup0 ((GValue*) g_hash_table_lookup (_tmp0_ = mpris_player_get_Metadata (self->priv->_player), "mpris:length")), _g_hash_table_unref0 (_tmp0_), _tmp1_);
if (time_value == NULL) {
- g_warning ("mpris2-controller.vala:208: Can't fetch the duration of the track ther" \
+ g_warning ("mpris2-controller.vala:215: Can't fetch the duration of the track ther" \
"efore cant set the position");
_g_free0 (time_value);
- _g_hash_table_unref0 (data);
return;
}
- total_time = (guint32) (g_value_get_uint (time_value) * 1000);
- g_debug ("mpris2-controller.vala:213: total time of track = %i", (gint) total_time);
- new_time_position = (total_time * position) / 100.0;
- g_debug ("mpris2-controller.vala:215: new position = %f", new_time_position);
- v = (_tmp1_ = __g_value_dup0 ((GValue*) g_hash_table_lookup (_tmp0_ = mpris_player_get_Metadata (self->priv->_player), "trackid")), _g_hash_table_unref0 (_tmp0_), _tmp1_);
+ total_time = g_value_get_int64 (time_value);
+ g_debug ("mpris2-controller.vala:220: total time of track = %i", (gint) total_time);
+ new_time_position = total_time * (position / 100.0);
+ g_debug ("mpris2-controller.vala:222: new position = %f", new_time_position);
+ v = (_tmp3_ = __g_value_dup0 ((GValue*) g_hash_table_lookup (_tmp2_ = mpris_player_get_Metadata (self->priv->_player), "mpris:trackid")), _g_hash_table_unref0 (_tmp2_), _tmp3_);
if (v != NULL) {
if (G_VALUE_HOLDS (v, G_TYPE_STRING)) {
char* path;
- g_debug ("mpris2-controller.vala:220: the trackid = %s", g_value_get_string (v));
path = g_strdup (g_value_get_string (v));
{
+ mpris_player_SetPosition (self->priv->_player, path, (gint64) new_time_position, &_inner_error_);
+ if (_inner_error_ != NULL) {
+ if (_inner_error_->domain == DBUS_GERROR) {
+ goto __catch5_dbus_gerror;
+ }
+ _g_free0 (path);
+ _g_free0 (v);
+ _g_free0 (time_value);
+ g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
+ g_clear_error (&_inner_error_);
+ return;
+ }
}
goto __finally5;
__catch5_dbus_gerror:
@@ -4989,7 +4993,7 @@ void mpris2_controller_set_position (Mpris2Controller* self, double position) {
e = _inner_error_;
_inner_error_ = NULL;
{
- g_error ("mpris2-controller.vala:226: DBus Error calling the player objects SetP" \
+ g_error ("mpris2-controller.vala:234: DBus Error calling the player objects SetP" \
"osition method %s", e->message);
_g_error_free0 (e);
}
@@ -4999,7 +5003,6 @@ void mpris2_controller_set_position (Mpris2Controller* self, double position) {
_g_free0 (path);
_g_free0 (v);
_g_free0 (time_value);
- _g_hash_table_unref0 (data);
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
return;
@@ -5009,18 +5012,12 @@ void mpris2_controller_set_position (Mpris2Controller* self, double position) {
}
_g_free0 (v);
_g_free0 (time_value);
- _g_hash_table_unref0 (data);
}
void mpris2_controller_onSeeked (Mpris2Controller* self, gint64 position) {
- PlayerItem* _tmp0_;
- ScrubMenuitem* scrub;
g_return_if_fail (self != NULL);
- g_debug ("mpris2-controller.vala:234: Seeked signal callback with pos = %i", ((gint) position) / 1000);
- scrub = (_tmp0_ = (PlayerItem*) gee_abstract_list_get ((GeeAbstractList*) self->priv->_owner->custom_items, (gint) PLAYER_CONTROLLER_WIDGET_ORDER_SCRUB), IS_SCRUB_MENUITEM (_tmp0_) ? ((ScrubMenuitem*) _tmp0_) : NULL);
- scrub_menuitem_update_position (scrub, ((gint32) position) / 1000);
- _g_object_unref0 (scrub);
+ g_debug ("mpris2-controller.vala:242: Seeked signal callback with pos = %i", ((gint) position) / 1000);
}
@@ -5057,9 +5054,8 @@ gboolean mpris2_controller_was_successfull (Mpris2Controller* self) {
void mpris2_controller_expose (Mpris2Controller* self) {
- GError * _inner_error_;
+ GError * _inner_error_ = NULL;
g_return_if_fail (self != NULL);
- _inner_error_ = NULL;
if (mpris2_controller_connected (self) == TRUE) {
{
mpris_root_Raise (self->priv->_mpris2_root, &_inner_error_);
@@ -5079,7 +5075,7 @@ void mpris2_controller_expose (Mpris2Controller* self) {
e = _inner_error_;
_inner_error_ = NULL;
{
- g_error ("mpris2-controller.vala:259: Exception thrown while calling root functi" \
+ g_error ("mpris2-controller.vala:267: Exception thrown while calling root functi" \
"on Raise - %s", e->message);
_g_error_free0 (e);
}
@@ -5185,28 +5181,28 @@ static GObject * mpris2_controller_constructor (GType type, guint n_construct_pr
{
{
DBusGConnection* connection;
- MprisRoot* _tmp245_;
- char* _tmp244_;
- char* _tmp243_;
- char* _tmp242_;
- char* _tmp241_;
- char* _tmp240_;
- char* _tmp239_;
- MprisPlayer* _tmp253_;
- char* _tmp252_;
- char* _tmp251_;
- char* _tmp250_;
- char* _tmp249_;
- char* _tmp248_;
- char* _tmp247_;
- char* _tmp246_;
- FreeDesktopProperties* _tmp260_;
- char* _tmp259_;
- char* _tmp258_;
- char* _tmp257_;
- char* _tmp256_;
- char* _tmp255_;
- char* _tmp254_;
+ char* _tmp0_;
+ char* _tmp1_;
+ char* _tmp2_;
+ char* _tmp3_;
+ char* _tmp4_;
+ char* _tmp5_;
+ MprisRoot* _tmp6_;
+ char* _tmp7_;
+ char* _tmp8_;
+ char* _tmp9_;
+ char* _tmp10_;
+ char* _tmp11_;
+ char* _tmp12_;
+ char* _tmp13_;
+ MprisPlayer* _tmp14_;
+ char* _tmp15_;
+ char* _tmp16_;
+ char* _tmp17_;
+ char* _tmp18_;
+ char* _tmp19_;
+ char* _tmp20_;
+ FreeDesktopProperties* _tmp21_;
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &_inner_error_);
if (_inner_error_ != NULL) {
if (_inner_error_->domain == DBUS_GERROR) {
@@ -5215,32 +5211,32 @@ static GObject * mpris2_controller_constructor (GType type, guint n_construct_pr
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
g_clear_error (&_inner_error_);
}
- mpris2_controller_set_mpris2_root (self, _tmp245_ = mpris_root_dbus_proxy_new (connection, _tmp244_ = g_strconcat (_tmp242_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp243_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
- _g_object_unref0 (_tmp245_);
- _g_free0 (_tmp244_);
- _g_free0 (_tmp243_);
- _g_free0 (_tmp242_);
- _g_free0 (_tmp241_);
- _g_free0 (_tmp240_);
- _g_free0 (_tmp239_);
- mpris2_controller_set_player (self, _tmp253_ = mpris_player_dbus_proxy_new (connection, _tmp252_ = g_strconcat (_tmp250_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp251_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
- _g_object_unref0 (_tmp253_);
- _g_free0 (_tmp252_);
- _g_free0 (_tmp251_);
- _g_free0 (_tmp250_);
- _g_free0 (_tmp249_);
- _g_free0 (_tmp248_);
- _g_free0 (_tmp247_);
- _g_free0 (_tmp246_);
+ mpris2_controller_set_mpris2_root (self, _tmp6_ = mpris_root_dbus_proxy_new (connection, _tmp5_ = g_strconcat (_tmp3_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp4_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
+ _g_object_unref0 (_tmp6_);
+ _g_free0 (_tmp5_);
+ _g_free0 (_tmp4_);
+ _g_free0 (_tmp3_);
+ _g_free0 (_tmp2_);
+ _g_free0 (_tmp1_);
+ _g_free0 (_tmp0_);
+ mpris2_controller_set_player (self, _tmp14_ = mpris_player_dbus_proxy_new (connection, _tmp13_ = g_strconcat (_tmp11_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp12_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
+ _g_object_unref0 (_tmp14_);
+ _g_free0 (_tmp13_);
+ _g_free0 (_tmp12_);
+ _g_free0 (_tmp11_);
+ _g_free0 (_tmp10_);
+ _g_free0 (_tmp9_);
+ _g_free0 (_tmp8_);
+ _g_free0 (_tmp7_);
g_signal_connect_object (self->priv->_player, "seeked", (GCallback) _mpris2_controller_onSeeked_mpris_player_seeked, self, 0);
- mpris2_controller_set_properties_interface (self, _tmp260_ = free_desktop_properties_dbus_proxy_new (connection, _tmp259_ = g_strconcat (_tmp257_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp258_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
- _g_object_unref0 (_tmp260_);
- _g_free0 (_tmp259_);
- _g_free0 (_tmp258_);
- _g_free0 (_tmp257_);
- _g_free0 (_tmp256_);
- _g_free0 (_tmp255_);
- _g_free0 (_tmp254_);
+ mpris2_controller_set_properties_interface (self, _tmp21_ = free_desktop_properties_dbus_proxy_new (connection, _tmp20_ = g_strconcat (_tmp18_ = g_strconcat (MPRIS2_CONTROLLER_root_interface, ".", NULL), _tmp19_ = g_utf8_strdown (player_controller_get_name (self->priv->_owner), -1), NULL), "/org/mpris/MediaPlayer2"));
+ _g_object_unref0 (_tmp21_);
+ _g_free0 (_tmp20_);
+ _g_free0 (_tmp19_);
+ _g_free0 (_tmp18_);
+ _g_free0 (_tmp17_);
+ _g_free0 (_tmp16_);
+ _g_free0 (_tmp15_);
g_signal_connect_object (self->priv->_properties_interface, "properties-changed", (GCallback) _mpris2_controller_property_changed_cb_free_desktop_properties_properties_changed, self, 0);
_dbus_g_connection_unref0 (connection);
}
@@ -5251,7 +5247,7 @@ static GObject * mpris2_controller_constructor (GType type, guint n_construct_pr
e = _inner_error_;
_inner_error_ = NULL;
{
- g_error ("mpris2-controller.vala:92: Problems connecting to the session bus - %s", e->message);
+ g_error ("mpris2-controller.vala:93: Problems connecting to the session bus - %s", e->message);
_g_error_free0 (e);
}
}