aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-interfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpris2-interfaces.c')
-rw-r--r--src/mpris2-interfaces.c80
1 files changed, 63 insertions, 17 deletions
diff --git a/src/mpris2-interfaces.c b/src/mpris2-interfaces.c
index b288a8f..1aebb6d 100644
--- a/src/mpris2-interfaces.c
+++ b/src/mpris2-interfaces.c
@@ -1,4 +1,4 @@
-/* mpris2-interfaces.c generated by valac 0.12.1, the Vala compiler
+/* mpris2-interfaces.c generated by valac 0.14.0, the Vala compiler
* generated from mpris2-interfaces.vala, do not modify */
/*
@@ -382,51 +382,61 @@ void mpris_root_Raise_finish (MprisRoot* self, GAsyncResult* _res_, GError** err
gboolean mpris_root_get_HasTracklist (MprisRoot* self) {
+ g_return_val_if_fail (self != NULL, FALSE);
return MPRIS_ROOT_GET_INTERFACE (self)->get_HasTracklist (self);
}
void mpris_root_set_HasTracklist (MprisRoot* self, gboolean value) {
+ g_return_if_fail (self != NULL);
MPRIS_ROOT_GET_INTERFACE (self)->set_HasTracklist (self, value);
}
gboolean mpris_root_get_CanQuit (MprisRoot* self) {
+ g_return_val_if_fail (self != NULL, FALSE);
return MPRIS_ROOT_GET_INTERFACE (self)->get_CanQuit (self);
}
void mpris_root_set_CanQuit (MprisRoot* self, gboolean value) {
+ g_return_if_fail (self != NULL);
MPRIS_ROOT_GET_INTERFACE (self)->set_CanQuit (self, value);
}
gboolean mpris_root_get_CanRaise (MprisRoot* self) {
+ g_return_val_if_fail (self != NULL, FALSE);
return MPRIS_ROOT_GET_INTERFACE (self)->get_CanRaise (self);
}
void mpris_root_set_CanRaise (MprisRoot* self, gboolean value) {
+ g_return_if_fail (self != NULL);
MPRIS_ROOT_GET_INTERFACE (self)->set_CanRaise (self, value);
}
gchar* mpris_root_get_Identity (MprisRoot* self) {
+ g_return_val_if_fail (self != NULL, NULL);
return MPRIS_ROOT_GET_INTERFACE (self)->get_Identity (self);
}
void mpris_root_set_Identity (MprisRoot* self, const gchar* value) {
+ g_return_if_fail (self != NULL);
MPRIS_ROOT_GET_INTERFACE (self)->set_Identity (self, value);
}
gchar* mpris_root_get_DesktopEntry (MprisRoot* self) {
+ g_return_val_if_fail (self != NULL, NULL);
return MPRIS_ROOT_GET_INTERFACE (self)->get_DesktopEntry (self);
}
void mpris_root_set_DesktopEntry (MprisRoot* self, const gchar* value) {
+ g_return_if_fail (self != NULL);
MPRIS_ROOT_GET_INTERFACE (self)->set_DesktopEntry (self, value);
}
@@ -875,7 +885,7 @@ static GVariant* _dbus_mpris_root_get_Identity (MprisRoot* self) {
GVariant* _reply;
result = mpris_root_get_Identity (self);
_reply = g_variant_new_string (result);
- _g_free0 ( result);
+ _g_free0 (result);
return _reply;
}
@@ -885,7 +895,7 @@ static GVariant* _dbus_mpris_root_get_DesktopEntry (MprisRoot* self) {
GVariant* _reply;
result = mpris_root_get_DesktopEntry (self);
_reply = g_variant_new_string (result);
- _g_free0 ( result);
+ _g_free0 (result);
return _reply;
}
@@ -1038,31 +1048,37 @@ void mpris_player_Seek_finish (MprisPlayer* self, GAsyncResult* _res_, GError**
GHashTable* mpris_player_get_Metadata (MprisPlayer* self) {
+ g_return_val_if_fail (self != NULL, NULL);
return MPRIS_PLAYER_GET_INTERFACE (self)->get_Metadata (self);
}
void mpris_player_set_Metadata (MprisPlayer* self, GHashTable* value) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYER_GET_INTERFACE (self)->set_Metadata (self, value);
}
gint32 mpris_player_get_Position (MprisPlayer* self) {
+ g_return_val_if_fail (self != NULL, 0);
return MPRIS_PLAYER_GET_INTERFACE (self)->get_Position (self);
}
void mpris_player_set_Position (MprisPlayer* self, gint32 value) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYER_GET_INTERFACE (self)->set_Position (self, value);
}
gchar* mpris_player_get_PlaybackStatus (MprisPlayer* self) {
+ g_return_val_if_fail (self != NULL, NULL);
return MPRIS_PLAYER_GET_INTERFACE (self)->get_PlaybackStatus (self);
}
void mpris_player_set_PlaybackStatus (MprisPlayer* self, const gchar* value) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYER_GET_INTERFACE (self)->set_PlaybackStatus (self, value);
}
@@ -1071,7 +1087,8 @@ static void g_cclosure_user_marshal_VOID__INT64 (GClosure * closure, GValue * re
typedef void (*GMarshalFunc_VOID__INT64) (gpointer data1, gint64 arg_1, gpointer data2);
register GMarshalFunc_VOID__INT64 callback;
register GCClosure * cc;
- register gpointer data1, data2;
+ register gpointer data1;
+ register gpointer data2;
cc = (GCClosure *) closure;
g_return_if_fail (n_param_values == 2);
if (G_CCLOSURE_SWAP_DATA (closure)) {
@@ -1583,7 +1600,7 @@ static GVariant* _dbus_mpris_player_get_Metadata (MprisPlayer* self) {
g_variant_builder_add (&_tmp10_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
}
_reply = g_variant_builder_end (&_tmp10_);
- _g_hash_table_unref0 ( result);
+ _g_hash_table_unref0 (result);
return _reply;
}
@@ -1602,7 +1619,7 @@ static GVariant* _dbus_mpris_player_get_PlaybackStatus (MprisPlayer* self) {
GVariant* _reply;
result = mpris_player_get_PlaybackStatus (self);
_reply = g_variant_new_string (result);
- _g_free0 ( result);
+ _g_free0 (result);
return _reply;
}
@@ -1707,6 +1724,7 @@ guint mpris_player_register_object (gpointer object, GDBusConnection* connection
static void _mpris_player_unregister_object (gpointer user_data) {
gpointer* data;
data = user_data;
+ g_signal_handlers_disconnect_by_func (data[0], _dbus_mpris_player_seeked, data);
g_object_unref (data[0]);
g_object_unref (data[1]);
g_free (data[2]);
@@ -1715,9 +1733,24 @@ static void _mpris_player_unregister_object (gpointer user_data) {
void playlist_details_copy (const PlaylistDetails* self, PlaylistDetails* dest) {
- dest->path = g_strdup (self->path);
- dest->name = g_strdup (self->name);
- dest->icon_path = g_strdup (self->icon_path);
+ const char* _tmp0_;
+ const char* _tmp1_;
+ const gchar* _tmp2_;
+ const gchar* _tmp3_;
+ const gchar* _tmp4_;
+ const gchar* _tmp5_;
+ _tmp0_ = (*self).path;
+ _tmp1_ = g_strdup (_tmp0_);
+ _g_free0 ((*dest).path);
+ (*dest).path = _tmp1_;
+ _tmp2_ = (*self).name;
+ _tmp3_ = g_strdup (_tmp2_);
+ _g_free0 ((*dest).name);
+ (*dest).name = _tmp3_;
+ _tmp4_ = (*self).icon_path;
+ _tmp5_ = g_strdup (_tmp4_);
+ _g_free0 ((*dest).icon_path);
+ (*dest).icon_path = _tmp5_;
}
@@ -1754,10 +1787,15 @@ GType playlist_details_get_type (void) {
void active_playlist_container_copy (const ActivePlaylistContainer* self, ActivePlaylistContainer* dest) {
- PlaylistDetails _tmp0_ = {0};
- dest->valid = self->valid;
- playlist_details_copy (&self->details, &_tmp0_);
- dest->details = _tmp0_;
+ gboolean _tmp0_;
+ PlaylistDetails _tmp1_;
+ PlaylistDetails _tmp2_ = {0};
+ _tmp0_ = (*self).valid;
+ (*dest).valid = _tmp0_;
+ _tmp1_ = (*self).details;
+ playlist_details_copy (&_tmp1_, &_tmp2_);
+ playlist_details_destroy (&(*dest).details);
+ (*dest).details = _tmp2_;
}
@@ -1812,31 +1850,37 @@ PlaylistDetails* mpris_playlists_GetPlaylists_finish (MprisPlaylists* self, GAsy
gchar** mpris_playlists_get_Orderings (MprisPlaylists* self, int* result_length1) {
+ g_return_val_if_fail (self != NULL, NULL);
return MPRIS_PLAYLISTS_GET_INTERFACE (self)->get_Orderings (self, result_length1);
}
void mpris_playlists_set_Orderings (MprisPlaylists* self, gchar** value, int value_length1) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYLISTS_GET_INTERFACE (self)->set_Orderings (self, value, value_length1);
}
guint32 mpris_playlists_get_PlaylistCount (MprisPlaylists* self) {
+ g_return_val_if_fail (self != NULL, 0U);
return MPRIS_PLAYLISTS_GET_INTERFACE (self)->get_PlaylistCount (self);
}
void mpris_playlists_set_PlaylistCount (MprisPlaylists* self, guint32 value) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYLISTS_GET_INTERFACE (self)->set_PlaylistCount (self, value);
}
void mpris_playlists_get_ActivePlaylist (MprisPlaylists* self, ActivePlaylistContainer* result) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYLISTS_GET_INTERFACE (self)->get_ActivePlaylist (self, result);
}
void mpris_playlists_set_ActivePlaylist (MprisPlaylists* self, ActivePlaylistContainer* value) {
+ g_return_if_fail (self != NULL);
MPRIS_PLAYLISTS_GET_INTERFACE (self)->set_ActivePlaylist (self, value);
}
@@ -1845,7 +1889,8 @@ static void g_cclosure_user_marshal_VOID__BOXED (GClosure * closure, GValue * re
typedef void (*GMarshalFunc_VOID__BOXED) (gpointer data1, gpointer arg_1, gpointer data2);
register GMarshalFunc_VOID__BOXED callback;
register GCClosure * cc;
- register gpointer data1, data2;
+ register gpointer data1;
+ register gpointer data2;
cc = (GCClosure *) closure;
g_return_if_fail (n_param_values == 2);
if (G_CCLOSURE_SWAP_DATA (closure)) {
@@ -2357,7 +2402,7 @@ static void _dbus_mpris_playlists_GetPlaylists_ready (GObject * source_object, G
_tmp55_++;
}
g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp56_));
- result = (_vala_PlaylistDetails_array_free ( result, result_length1), NULL);
+ result = (_vala_PlaylistDetails_array_free (result, result_length1), NULL);
_reply = g_variant_builder_end (&_reply_builder);
g_dbus_message_set_body (_reply_message, _reply);
g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
@@ -2396,7 +2441,7 @@ static GVariant* _dbus_mpris_playlists_get_Orderings (MprisPlaylists* self) {
_tmp59_++;
}
_reply = g_variant_builder_end (&_tmp60_);
- result = (_vala_array_free ( result, result_length1, (GDestroyNotify) g_free), NULL);
+ result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
return _reply;
}
@@ -2424,7 +2469,7 @@ static GVariant* _dbus_mpris_playlists_get_ActivePlaylist (MprisPlaylists* self)
g_variant_builder_add_value (&_tmp63_, g_variant_new_string (result.details.icon_path));
g_variant_builder_add_value (&_tmp62_, g_variant_builder_end (&_tmp63_));
_reply = g_variant_builder_end (&_tmp62_);
- active_playlist_container_destroy (& result);
+ active_playlist_container_destroy (&result);
return _reply;
}
@@ -2573,6 +2618,7 @@ guint mpris_playlists_register_object (gpointer object, GDBusConnection* connect
static void _mpris_playlists_unregister_object (gpointer user_data) {
gpointer* data;
data = user_data;
+ g_signal_handlers_disconnect_by_func (data[0], _dbus_mpris_playlists_playlist_changed, data);
g_object_unref (data[0]);
g_object_unref (data[1]);
g_free (data[2]);