~ubuntu-branches/ubuntu/trusty/rygel/trusty

« back to all changes in this revision

Viewing changes to src/plugins/external/rygel-external-album-art-factory.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2011-12-16 15:21:25 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111216152125-qgn31dkfmhouhrf0
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* rygel-external-album-art-factory.c generated by valac 0.12.0, the Vala compiler
 
1
/* rygel-external-album-art-factory.c generated by valac 0.14.1, the Vala compiler
2
2
 * generated from rygel-external-album-art-factory.vala, do not modify */
3
3
 
4
4
/*
73
73
        gchar* service_name;
74
74
        gchar* object_path;
75
75
        RygelThumbnail* result;
76
 
        FreeDesktopProperties* _tmp0_;
 
76
        const gchar* _tmp0_;
 
77
        const gchar* _tmp1_;
 
78
        FreeDesktopProperties* _tmp2_;
77
79
        FreeDesktopProperties* props;
78
 
        GHashTable* _tmp1_;
 
80
        FreeDesktopProperties* _tmp3_;
 
81
        GHashTable* _tmp4_;
79
82
        GHashTable* item_props;
80
 
        RygelThumbnail* _tmp2_;
 
83
        GHashTable* _tmp5_;
 
84
        RygelThumbnail* _tmp6_;
81
85
        GError * _inner_error_;
82
86
};
83
87
 
101
105
static void rygel_external_album_art_factory_create_data_free (gpointer _data);
102
106
void rygel_external_album_art_factory_create (RygelExternalAlbumArtFactory* self, const gchar* service_name, const gchar* object_path, GAsyncReadyCallback _callback_, gpointer _user_data_);
103
107
RygelThumbnail* rygel_external_album_art_factory_create_finish (RygelExternalAlbumArtFactory* self, GAsyncResult* _res_, GError** error);
104
 
static gboolean rygel_external_album_art_factory_create_co (RygelExternalAlbumArtFactoryCreateData* data);
 
108
static gboolean rygel_external_album_art_factory_create_co (RygelExternalAlbumArtFactoryCreateData* _data_);
105
109
static void rygel_external_album_art_factory_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
106
110
#define RYGEL_EXTERNAL_MEDIA_ITEM_PROXY_IFACE "org.gnome.UPnP.MediaItem2"
107
111
static RygelThumbnail* rygel_external_album_art_factory_create_from_props (RygelExternalAlbumArtFactory* self, GHashTable* props);
117
121
 
118
122
 
119
123
static void rygel_external_album_art_factory_create_data_free (gpointer _data) {
120
 
        RygelExternalAlbumArtFactoryCreateData* data;
121
 
        data = _data;
122
 
        _g_free0 (data->service_name);
123
 
        _g_free0 (data->object_path);
124
 
        _rygel_icon_info_unref0 (data->result);
125
 
        _rygel_external_album_art_factory_unref0 (data->self);
126
 
        g_slice_free (RygelExternalAlbumArtFactoryCreateData, data);
 
124
        RygelExternalAlbumArtFactoryCreateData* _data_;
 
125
        _data_ = _data;
 
126
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
127
        _g_free0 (_data_->service_name);
 
128
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
129
        _g_free0 (_data_->object_path);
 
130
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
131
        _rygel_icon_info_unref0 (_data_->result);
 
132
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
133
        _rygel_external_album_art_factory_unref0 (_data_->self);
 
134
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
135
        g_slice_free (RygelExternalAlbumArtFactoryCreateData, _data_);
 
136
#line 137 "rygel-external-album-art-factory.c"
127
137
}
128
138
 
129
139
 
130
140
static gpointer _rygel_external_album_art_factory_ref0 (gpointer self) {
 
141
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
131
142
        return self ? rygel_external_album_art_factory_ref (self) : NULL;
 
143
#line 144 "rygel-external-album-art-factory.c"
132
144
}
133
145
 
134
146
 
135
147
void rygel_external_album_art_factory_create (RygelExternalAlbumArtFactory* self, const gchar* service_name, const gchar* object_path, GAsyncReadyCallback _callback_, gpointer _user_data_) {
136
148
        RygelExternalAlbumArtFactoryCreateData* _data_;
 
149
        RygelExternalAlbumArtFactory* _tmp0_;
 
150
        const gchar* _tmp1_;
 
151
        gchar* _tmp2_;
 
152
        const gchar* _tmp3_;
 
153
        gchar* _tmp4_;
 
154
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
137
155
        _data_ = g_slice_new0 (RygelExternalAlbumArtFactoryCreateData);
 
156
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
138
157
        _data_->_async_result = g_simple_async_result_new (g_object_newv (G_TYPE_OBJECT, 0, NULL), _callback_, _user_data_, rygel_external_album_art_factory_create);
 
158
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
139
159
        g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_external_album_art_factory_create_data_free);
140
 
        _data_->self = _rygel_external_album_art_factory_ref0 (self);
141
 
        _data_->service_name = g_strdup (service_name);
142
 
        _data_->object_path = g_strdup (object_path);
 
160
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
161
        _tmp0_ = _rygel_external_album_art_factory_ref0 (self);
 
162
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
163
        _data_->self = _tmp0_;
 
164
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
165
        _tmp1_ = service_name;
 
166
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
167
        _tmp2_ = g_strdup (_tmp1_);
 
168
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
169
        _data_->service_name = _tmp2_;
 
170
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
171
        _tmp3_ = object_path;
 
172
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
173
        _tmp4_ = g_strdup (_tmp3_);
 
174
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
175
        _data_->object_path = _tmp4_;
 
176
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
143
177
        rygel_external_album_art_factory_create_co (_data_);
 
178
#line 179 "rygel-external-album-art-factory.c"
144
179
}
145
180
 
146
181
 
147
182
RygelThumbnail* rygel_external_album_art_factory_create_finish (RygelExternalAlbumArtFactory* self, GAsyncResult* _res_, GError** error) {
148
183
        RygelThumbnail* result;
149
184
        RygelExternalAlbumArtFactoryCreateData* _data_;
 
185
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
150
186
        if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
 
187
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
151
188
                return NULL;
 
189
#line 190 "rygel-external-album-art-factory.c"
152
190
        }
 
191
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
153
192
        _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
 
193
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
154
194
        result = _data_->result;
 
195
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
155
196
        _data_->result = NULL;
 
197
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
156
198
        return result;
 
199
#line 200 "rygel-external-album-art-factory.c"
157
200
}
158
201
 
159
202
 
160
203
static void rygel_external_album_art_factory_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
161
 
        RygelExternalAlbumArtFactoryCreateData* data;
162
 
        data = _user_data_;
163
 
        data->_source_object_ = source_object;
164
 
        data->_res_ = _res_;
165
 
        rygel_external_album_art_factory_create_co (data);
 
204
        RygelExternalAlbumArtFactoryCreateData* _data_;
 
205
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
206
        _data_ = _user_data_;
 
207
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
208
        _data_->_source_object_ = source_object;
 
209
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
210
        _data_->_res_ = _res_;
 
211
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
212
        rygel_external_album_art_factory_create_co (_data_);
 
213
#line 214 "rygel-external-album-art-factory.c"
166
214
}
167
215
 
168
216
 
169
 
static gboolean rygel_external_album_art_factory_create_co (RygelExternalAlbumArtFactoryCreateData* data) {
170
 
        switch (data->_state_) {
 
217
static gboolean rygel_external_album_art_factory_create_co (RygelExternalAlbumArtFactoryCreateData* _data_) {
 
218
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
219
        switch (_data_->_state_) {
 
220
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
171
221
                case 0:
 
222
#line 223 "rygel-external-album-art-factory.c"
172
223
                goto _state_0;
 
224
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
173
225
                case 1:
 
226
#line 227 "rygel-external-album-art-factory.c"
174
227
                goto _state_1;
 
228
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
175
229
                case 2:
 
230
#line 231 "rygel-external-album-art-factory.c"
176
231
                goto _state_2;
177
232
                default:
 
233
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
178
234
                g_assert_not_reached ();
 
235
#line 236 "rygel-external-album-art-factory.c"
179
236
        }
180
237
        _state_0:
181
 
        data->_state_ = 1;
182
 
        g_async_initable_new_async (FREE_DESKTOP_TYPE_PROPERTIES_PROXY, 0, NULL, rygel_external_album_art_factory_create_ready, data, "g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, "g-name", data->service_name, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", data->object_path, "g-interface-name", "org.freedesktop.DBus.Properties", NULL);
 
238
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
239
        _data_->_tmp0_ = _data_->service_name;
 
240
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
241
        _data_->_tmp1_ = _data_->object_path;
 
242
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
243
        _data_->_state_ = 1;
 
244
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
245
        g_async_initable_new_async (FREE_DESKTOP_TYPE_PROPERTIES_PROXY, 0, NULL, rygel_external_album_art_factory_create_ready, _data_, "g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, "g-name", _data_->_tmp0_, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", _data_->_tmp1_, "g-interface-name", "org.freedesktop.DBus.Properties", NULL);
 
246
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
183
247
        return FALSE;
 
248
#line 249 "rygel-external-album-art-factory.c"
184
249
        _state_1:
185
 
        data->_tmp0_ = NULL;
186
 
        data->_tmp0_ = g_async_initable_new_finish (data->_source_object_, data->_res_, &data->_inner_error_);
187
 
        data->props = (FreeDesktopProperties*) data->_tmp0_;
188
 
        if (data->_inner_error_ != NULL) {
189
 
                if ((data->_inner_error_->domain == G_IO_ERROR) || (data->_inner_error_->domain == G_DBUS_ERROR)) {
190
 
                        g_simple_async_result_set_from_error (data->_async_result, data->_inner_error_);
191
 
                        g_error_free (data->_inner_error_);
192
 
                        if (data->_state_ == 0) {
193
 
                                g_simple_async_result_complete_in_idle (data->_async_result);
 
250
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
251
        _data_->_tmp2_ = NULL;
 
252
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
253
        _data_->_tmp2_ = g_async_initable_new_finish (_data_->_source_object_, _data_->_res_, &_data_->_inner_error_);
 
254
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
255
        _data_->props = (FreeDesktopProperties*) _data_->_tmp2_;
 
256
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
257
        if (_data_->_inner_error_ != NULL) {
 
258
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
259
                if ((_data_->_inner_error_->domain == G_IO_ERROR) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) {
 
260
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
261
                        g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
 
262
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
263
                        g_error_free (_data_->_inner_error_);
 
264
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
265
                        if (_data_->_state_ == 0) {
 
266
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
267
                                g_simple_async_result_complete_in_idle (_data_->_async_result);
 
268
#line 269 "rygel-external-album-art-factory.c"
194
269
                        } else {
195
 
                                g_simple_async_result_complete (data->_async_result);
 
270
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
271
                                g_simple_async_result_complete (_data_->_async_result);
 
272
#line 273 "rygel-external-album-art-factory.c"
196
273
                        }
197
 
                        g_object_unref (data->_async_result);
 
274
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
275
                        g_object_unref (_data_->_async_result);
 
276
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
198
277
                        return FALSE;
 
278
#line 279 "rygel-external-album-art-factory.c"
199
279
                } else {
200
 
                        g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, data->_inner_error_->message, g_quark_to_string (data->_inner_error_->domain), data->_inner_error_->code);
201
 
                        g_clear_error (&data->_inner_error_);
 
280
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
281
                        g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
 
282
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
283
                        g_clear_error (&_data_->_inner_error_);
 
284
#line 34 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
202
285
                        return FALSE;
 
286
#line 287 "rygel-external-album-art-factory.c"
203
287
                }
204
288
        }
205
 
        data->_state_ = 2;
206
 
        free_desktop_properties_get_all (data->props, RYGEL_EXTERNAL_MEDIA_ITEM_PROXY_IFACE, rygel_external_album_art_factory_create_ready, data);
 
289
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
290
        _data_->_tmp3_ = _data_->props;
 
291
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
292
        _data_->_state_ = 2;
 
293
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
294
        free_desktop_properties_get_all (_data_->_tmp3_, RYGEL_EXTERNAL_MEDIA_ITEM_PROXY_IFACE, rygel_external_album_art_factory_create_ready, _data_);
 
295
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
207
296
        return FALSE;
 
297
#line 298 "rygel-external-album-art-factory.c"
208
298
        _state_2:
209
 
        data->_tmp1_ = NULL;
210
 
        data->_tmp1_ = free_desktop_properties_get_all_finish (data->props, data->_res_, &data->_inner_error_);
211
 
        data->item_props = data->_tmp1_;
212
 
        if (data->_inner_error_ != NULL) {
213
 
                if ((data->_inner_error_->domain == G_IO_ERROR) || (data->_inner_error_->domain == G_DBUS_ERROR)) {
214
 
                        g_simple_async_result_set_from_error (data->_async_result, data->_inner_error_);
215
 
                        g_error_free (data->_inner_error_);
216
 
                        _g_object_unref0 (data->props);
217
 
                        if (data->_state_ == 0) {
218
 
                                g_simple_async_result_complete_in_idle (data->_async_result);
 
299
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
300
        _data_->_tmp4_ = NULL;
 
301
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
302
        _data_->_tmp4_ = free_desktop_properties_get_all_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
 
303
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
304
        _data_->item_props = _data_->_tmp4_;
 
305
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
306
        if (_data_->_inner_error_ != NULL) {
 
307
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
308
                if ((_data_->_inner_error_->domain == G_IO_ERROR) || (_data_->_inner_error_->domain == G_DBUS_ERROR)) {
 
309
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
310
                        g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
 
311
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
312
                        g_error_free (_data_->_inner_error_);
 
313
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
314
                        _g_object_unref0 (_data_->props);
 
315
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
316
                        if (_data_->_state_ == 0) {
 
317
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
318
                                g_simple_async_result_complete_in_idle (_data_->_async_result);
 
319
#line 320 "rygel-external-album-art-factory.c"
219
320
                        } else {
220
 
                                g_simple_async_result_complete (data->_async_result);
 
321
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
322
                                g_simple_async_result_complete (_data_->_async_result);
 
323
#line 324 "rygel-external-album-art-factory.c"
221
324
                        }
222
 
                        g_object_unref (data->_async_result);
 
325
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
326
                        g_object_unref (_data_->_async_result);
 
327
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
223
328
                        return FALSE;
 
329
#line 330 "rygel-external-album-art-factory.c"
224
330
                } else {
225
 
                        _g_object_unref0 (data->props);
226
 
                        g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, data->_inner_error_->message, g_quark_to_string (data->_inner_error_->domain), data->_inner_error_->code);
227
 
                        g_clear_error (&data->_inner_error_);
 
331
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
332
                        _g_object_unref0 (_data_->props);
 
333
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
334
                        g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
 
335
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
336
                        g_clear_error (&_data_->_inner_error_);
 
337
#line 40 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
228
338
                        return FALSE;
 
339
#line 340 "rygel-external-album-art-factory.c"
229
340
                }
230
341
        }
231
 
        data->_tmp2_ = NULL;
232
 
        data->_tmp2_ = rygel_external_album_art_factory_create_from_props (data->self, data->item_props);
233
 
        data->result = data->_tmp2_;
234
 
        _g_hash_table_unref0 (data->item_props);
235
 
        _g_object_unref0 (data->props);
236
 
        if (data->_state_ == 0) {
237
 
                g_simple_async_result_complete_in_idle (data->_async_result);
238
 
        } else {
239
 
                g_simple_async_result_complete (data->_async_result);
240
 
        }
241
 
        g_object_unref (data->_async_result);
242
 
        return FALSE;
243
 
        _g_hash_table_unref0 (data->item_props);
244
 
        _g_object_unref0 (data->props);
245
 
        if (data->_state_ == 0) {
246
 
                g_simple_async_result_complete_in_idle (data->_async_result);
247
 
        } else {
248
 
                g_simple_async_result_complete (data->_async_result);
249
 
        }
250
 
        g_object_unref (data->_async_result);
251
 
        return FALSE;
 
342
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
343
        _data_->_tmp5_ = _data_->item_props;
 
344
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
345
        _data_->_tmp6_ = NULL;
 
346
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
347
        _data_->_tmp6_ = rygel_external_album_art_factory_create_from_props (_data_->self, _data_->_tmp5_);
 
348
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
349
        _data_->result = _data_->_tmp6_;
 
350
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
351
        _g_hash_table_unref0 (_data_->item_props);
 
352
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
353
        _g_object_unref0 (_data_->props);
 
354
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
355
        if (_data_->_state_ == 0) {
 
356
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
357
                g_simple_async_result_complete_in_idle (_data_->_async_result);
 
358
#line 359 "rygel-external-album-art-factory.c"
 
359
        } else {
 
360
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
361
                g_simple_async_result_complete (_data_->_async_result);
 
362
#line 363 "rygel-external-album-art-factory.c"
 
363
        }
 
364
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
365
        g_object_unref (_data_->_async_result);
 
366
#line 42 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
367
        return FALSE;
 
368
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
369
        _g_hash_table_unref0 (_data_->item_props);
 
370
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
371
        _g_object_unref0 (_data_->props);
 
372
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
373
        if (_data_->_state_ == 0) {
 
374
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
375
                g_simple_async_result_complete_in_idle (_data_->_async_result);
 
376
#line 377 "rygel-external-album-art-factory.c"
 
377
        } else {
 
378
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
379
                g_simple_async_result_complete (_data_->_async_result);
 
380
#line 381 "rygel-external-album-art-factory.c"
 
381
        }
 
382
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
383
        g_object_unref (_data_->_async_result);
 
384
#line 31 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
385
        return FALSE;
 
386
#line 387 "rygel-external-album-art-factory.c"
252
387
}
253
388
 
254
389
 
255
390
static gpointer _g_variant_ref0 (gpointer self) {
 
391
#line 48 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
256
392
        return self ? g_variant_ref (self) : NULL;
 
393
#line 394 "rygel-external-album-art-factory.c"
257
394
}
258
395
 
259
396
 
260
397
static const gchar* _variant_get16 (GVariant* value) {
 
398
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
261
399
        return g_variant_dup_string (value, NULL);
 
400
#line 401 "rygel-external-album-art-factory.c"
262
401
}
263
402
 
264
403
 
265
404
static gchar** _variant_get17 (GVariant* value, int* result_length1) {
266
 
        gchar** _tmp7_;
267
 
        int _tmp7__length;
268
 
        int _tmp7__size;
269
 
        int _tmp7__length1;
270
 
        GVariantIter _tmp8_;
271
 
        GVariant* _tmp9_;
272
 
        _tmp7_ = g_new (gchar*, 5);
273
 
        _tmp7__length = 0;
274
 
        _tmp7__size = 4;
275
 
        _tmp7__length1 = 0;
276
 
        g_variant_iter_init (&_tmp8_, value);
277
 
        for (; (_tmp9_ = g_variant_iter_next_value (&_tmp8_)) != NULL; _tmp7__length1++) {
278
 
                if (_tmp7__size == _tmp7__length) {
279
 
                        _tmp7__size = 2 * _tmp7__size;
280
 
                        _tmp7_ = g_renew (gchar*, _tmp7_, _tmp7__size + 1);
 
405
        gchar** _tmp13_;
 
406
        int _tmp13__length;
 
407
        int _tmp13__size;
 
408
        int _tmp13__length1;
 
409
        GVariantIter _tmp14_;
 
410
        GVariant* _tmp15_;
 
411
        _tmp13_ = g_new (gchar*, 5);
 
412
        _tmp13__length = 0;
 
413
        _tmp13__size = 4;
 
414
        _tmp13__length1 = 0;
 
415
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
416
        g_variant_iter_init (&_tmp14_, value);
 
417
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
418
        for (; (_tmp15_ = g_variant_iter_next_value (&_tmp14_)) != NULL; _tmp13__length1++) {
 
419
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
420
                if (_tmp13__size == _tmp13__length) {
 
421
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
422
                        _tmp13__size = 2 * _tmp13__size;
 
423
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
424
                        _tmp13_ = g_renew (gchar*, _tmp13_, _tmp13__size + 1);
 
425
#line 426 "rygel-external-album-art-factory.c"
281
426
                }
282
 
                _tmp7_[_tmp7__length++] = g_variant_dup_string (_tmp9_, NULL);
283
 
                g_variant_unref (_tmp9_);
 
427
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
428
                _tmp13_[_tmp13__length++] = g_variant_dup_string (_tmp15_, NULL);
 
429
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
430
                g_variant_unref (_tmp15_);
 
431
#line 432 "rygel-external-album-art-factory.c"
284
432
        }
285
 
        *result_length1 = _tmp7__length1;
286
 
        _tmp7_[_tmp7__length] = NULL;
287
 
        return _tmp7_;
 
433
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
434
        *result_length1 = _tmp13__length1;
 
435
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
436
        _tmp13_[_tmp13__length] = NULL;
 
437
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
438
        return _tmp13_;
 
439
#line 440 "rygel-external-album-art-factory.c"
288
440
}
289
441
 
290
442
 
291
443
static gchar** _vala_array_dup3 (gchar** self, int length) {
292
444
        gchar** result;
293
445
        int i;
 
446
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
294
447
        result = g_new0 (gchar*, length + 1);
 
448
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
295
449
        for (i = 0; i < length; i++) {
296
 
                result[i] = g_strdup (self[i]);
 
450
#line 451 "rygel-external-album-art-factory.c"
 
451
                gchar* _tmp0_;
 
452
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
453
                _tmp0_ = g_strdup (self[i]);
 
454
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
455
                result[i] = _tmp0_;
 
456
#line 457 "rygel-external-album-art-factory.c"
297
457
        }
 
458
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
298
459
        return result;
 
460
#line 461 "rygel-external-album-art-factory.c"
299
461
}
300
462
 
301
463
 
302
464
static gint64 _variant_get18 (GVariant* value) {
 
465
#line 59 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
303
466
        return g_variant_get_int64 (value);
 
467
#line 468 "rygel-external-album-art-factory.c"
304
468
}
305
469
 
306
470
 
307
471
static RygelThumbnail* rygel_external_album_art_factory_create_from_props (RygelExternalAlbumArtFactory* self, GHashTable* props) {
308
472
        RygelThumbnail* result = NULL;
309
 
        RygelThumbnail* _tmp0_ = NULL;
 
473
        RygelThumbnail* _tmp0_;
310
474
        RygelThumbnail* thumbnail;
311
 
        gconstpointer _tmp1_ = NULL;
312
 
        GVariant* _tmp2_;
 
475
        GHashTable* _tmp1_;
 
476
        gconstpointer _tmp2_ = NULL;
 
477
        GVariant* _tmp3_;
313
478
        GVariant* value;
314
 
        gchar* _tmp3_;
315
 
        gconstpointer _tmp4_ = NULL;
 
479
        RygelThumbnail* _tmp4_;
316
480
        GVariant* _tmp5_;
317
 
        gint _tmp6_;
318
 
        gchar** _tmp10_;
319
 
        gchar** _tmp11_;
 
481
        const gchar* _tmp6_;
 
482
        gchar* _tmp7_;
 
483
        GHashTable* _tmp8_;
 
484
        gconstpointer _tmp9_ = NULL;
 
485
        GVariant* _tmp10_;
 
486
        GVariant* _tmp11_;
 
487
        gchar** _tmp12_;
 
488
        gint _tmp12__length1;
 
489
        gchar** _tmp16_;
 
490
        gint _tmp16__length1;
320
491
        gchar** uris;
321
492
        gint uris_length1;
322
493
        gint _uris_size_;
323
 
        gboolean _tmp12_ = FALSE;
324
 
        gconstpointer _tmp14_ = NULL;
325
 
        GVariant* _tmp15_;
 
494
        gboolean _tmp17_ = FALSE;
 
495
        gchar** _tmp18_;
 
496
        gint _tmp18__length1;
 
497
        gboolean _tmp21_;
 
498
        GHashTable* _tmp26_;
 
499
        gconstpointer _tmp27_ = NULL;
 
500
        GVariant* _tmp28_;
 
501
        GVariant* _tmp29_;
 
502
#line 45 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
326
503
        g_return_val_if_fail (self != NULL, NULL);
 
504
#line 45 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
327
505
        g_return_val_if_fail (props != NULL, NULL);
 
506
#line 46 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
328
507
        _tmp0_ = rygel_thumbnail_new ("image/jpeg", "JPEG_TN", "jpg");
 
508
#line 46 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
329
509
        thumbnail = _tmp0_;
330
 
        _tmp1_ = g_hash_table_lookup (props, "MIMEType");
331
 
        _tmp2_ = _g_variant_ref0 ((GVariant*) _tmp1_);
332
 
        value = _tmp2_;
333
 
        _tmp3_ = g_strdup (_variant_get16 (value));
334
 
        _g_free0 (((RygelIconInfo*) thumbnail)->mime_type);
335
 
        ((RygelIconInfo*) thumbnail)->mime_type = _tmp3_;
336
 
        _tmp4_ = g_hash_table_lookup (props, "URLs");
337
 
        _tmp5_ = _g_variant_ref0 ((GVariant*) _tmp4_);
 
510
#line 48 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
511
        _tmp1_ = props;
 
512
#line 48 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
513
        _tmp2_ = g_hash_table_lookup (_tmp1_, "MIMEType");
 
514
#line 48 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
515
        _tmp3_ = _g_variant_ref0 ((GVariant*) _tmp2_);
 
516
#line 48 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
517
        value = _tmp3_;
 
518
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
519
        _tmp4_ = thumbnail;
 
520
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
521
        _tmp5_ = value;
 
522
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
523
        _tmp6_ = _variant_get16 (_tmp5_);
 
524
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
525
        _tmp7_ = g_strdup (_tmp6_);
 
526
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
527
        _g_free0 (((RygelIconInfo*) _tmp4_)->mime_type);
 
528
#line 49 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
529
        ((RygelIconInfo*) _tmp4_)->mime_type = _tmp7_;
 
530
#line 51 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
531
        _tmp8_ = props;
 
532
#line 51 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
533
        _tmp9_ = g_hash_table_lookup (_tmp8_, "URLs");
 
534
#line 51 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
535
        _tmp10_ = _g_variant_ref0 ((GVariant*) _tmp9_);
 
536
#line 51 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
338
537
        _g_variant_unref0 (value);
339
 
        value = _tmp5_;
340
 
        _tmp10_ = (_tmp11_ = _variant_get17 (value, &_tmp6_), (_tmp11_ == NULL) ? ((gpointer) _tmp11_) : _vala_array_dup3 (_tmp11_, _tmp6_));
341
 
        uris = _tmp10_;
342
 
        uris_length1 = _tmp6_;
343
 
        _uris_size_ = _tmp6_;
344
 
        if (uris != NULL) {
345
 
                _tmp12_ = uris[0] != NULL;
 
538
#line 51 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
539
        value = _tmp10_;
 
540
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
541
        _tmp11_ = value;
 
542
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
543
        _tmp12_ = _variant_get17 (_tmp11_, &_tmp12__length1);
 
544
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
545
        _tmp16_ = (_tmp12_ != NULL) ? _vala_array_dup3 (_tmp12_, _tmp12__length1) : ((gpointer) _tmp12_);
 
546
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
547
        _tmp16__length1 = _tmp12__length1;
 
548
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
549
        uris = _tmp16_;
 
550
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
551
        uris_length1 = _tmp16__length1;
 
552
#line 52 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
553
        _uris_size_ = uris_length1;
 
554
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
555
        _tmp18_ = uris;
 
556
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
557
        _tmp18__length1 = uris_length1;
 
558
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
559
        if (_tmp18_ != NULL) {
 
560
#line 561 "rygel-external-album-art-factory.c"
 
561
                gchar** _tmp19_;
 
562
                gint _tmp19__length1;
 
563
                const gchar* _tmp20_;
 
564
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
565
                _tmp19_ = uris;
 
566
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
567
                _tmp19__length1 = uris_length1;
 
568
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
569
                _tmp20_ = _tmp19_[0];
 
570
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
571
                _tmp17_ = _tmp20_ != NULL;
 
572
#line 573 "rygel-external-album-art-factory.c"
346
573
        } else {
347
 
                _tmp12_ = FALSE;
348
 
        }
349
 
        if (_tmp12_) {
350
 
                gchar* _tmp13_;
351
 
                _tmp13_ = g_strdup (uris[0]);
352
 
                _g_free0 (((RygelIconInfo*) thumbnail)->uri);
353
 
                ((RygelIconInfo*) thumbnail)->uri = _tmp13_;
354
 
        }
355
 
        _tmp14_ = g_hash_table_lookup (props, "Size");
356
 
        _tmp15_ = _g_variant_ref0 ((GVariant*) _tmp14_);
 
574
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
575
                _tmp17_ = FALSE;
 
576
#line 577 "rygel-external-album-art-factory.c"
 
577
        }
 
578
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
579
        _tmp21_ = _tmp17_;
 
580
#line 53 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
581
        if (_tmp21_) {
 
582
#line 583 "rygel-external-album-art-factory.c"
 
583
                RygelThumbnail* _tmp22_;
 
584
                gchar** _tmp23_;
 
585
                gint _tmp23__length1;
 
586
                const gchar* _tmp24_;
 
587
                gchar* _tmp25_;
 
588
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
589
                _tmp22_ = thumbnail;
 
590
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
591
                _tmp23_ = uris;
 
592
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
593
                _tmp23__length1 = uris_length1;
 
594
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
595
                _tmp24_ = _tmp23_[0];
 
596
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
597
                _tmp25_ = g_strdup (_tmp24_);
 
598
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
599
                _g_free0 (((RygelIconInfo*) _tmp22_)->uri);
 
600
#line 54 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
601
                ((RygelIconInfo*) _tmp22_)->uri = _tmp25_;
 
602
#line 603 "rygel-external-album-art-factory.c"
 
603
        }
 
604
#line 57 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
605
        _tmp26_ = props;
 
606
#line 57 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
607
        _tmp27_ = g_hash_table_lookup (_tmp26_, "Size");
 
608
#line 57 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
609
        _tmp28_ = _g_variant_ref0 ((GVariant*) _tmp27_);
 
610
#line 57 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
357
611
        _g_variant_unref0 (value);
358
 
        value = _tmp15_;
359
 
        if (value != NULL) {
360
 
                ((RygelIconInfo*) thumbnail)->size = _variant_get18 (value);
 
612
#line 57 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
613
        value = _tmp28_;
 
614
#line 58 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
615
        _tmp29_ = value;
 
616
#line 58 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
617
        if (_tmp29_ != NULL) {
 
618
#line 619 "rygel-external-album-art-factory.c"
 
619
                RygelThumbnail* _tmp30_;
 
620
                GVariant* _tmp31_;
 
621
                gint64 _tmp32_;
 
622
#line 59 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
623
                _tmp30_ = thumbnail;
 
624
#line 59 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
625
                _tmp31_ = value;
 
626
#line 59 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
627
                _tmp32_ = _variant_get18 (_tmp31_);
 
628
#line 59 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
 
629
                ((RygelIconInfo*) _tmp30_)->size = _tmp32_;
 
630
#line 631 "rygel-external-album-art-factory.c"
361
631
        }
 
632
#line 62 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
362
633
        result = thumbnail;
 
634
#line 62 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
363
635
        uris = (_vala_array_free (uris, uris_length1, (GDestroyNotify) g_free), NULL);
 
636
#line 62 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
364
637
        _g_variant_unref0 (value);
 
638
#line 62 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
365
639
        return result;
 
640
#line 641 "rygel-external-album-art-factory.c"
366
641
}
367
642
 
368
643
 
369
644
RygelExternalAlbumArtFactory* rygel_external_album_art_factory_construct (GType object_type) {
370
645
        RygelExternalAlbumArtFactory* self = NULL;
 
646
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
371
647
        self = (RygelExternalAlbumArtFactory*) g_type_create_instance (object_type);
 
648
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
372
649
        return self;
 
650
#line 651 "rygel-external-album-art-factory.c"
373
651
}
374
652
 
375
653
 
376
654
RygelExternalAlbumArtFactory* rygel_external_album_art_factory_new (void) {
 
655
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
377
656
        return rygel_external_album_art_factory_construct (RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY);
 
657
#line 658 "rygel-external-album-art-factory.c"
378
658
}
379
659
 
380
660
 
381
661
static void rygel_external_value_album_art_factory_init (GValue* value) {
 
662
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
382
663
        value->data[0].v_pointer = NULL;
 
664
#line 665 "rygel-external-album-art-factory.c"
383
665
}
384
666
 
385
667
 
386
668
static void rygel_external_value_album_art_factory_free_value (GValue* value) {
 
669
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
387
670
        if (value->data[0].v_pointer) {
 
671
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
388
672
                rygel_external_album_art_factory_unref (value->data[0].v_pointer);
 
673
#line 674 "rygel-external-album-art-factory.c"
389
674
        }
390
675
}
391
676
 
392
677
 
393
678
static void rygel_external_value_album_art_factory_copy_value (const GValue* src_value, GValue* dest_value) {
 
679
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
394
680
        if (src_value->data[0].v_pointer) {
 
681
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
395
682
                dest_value->data[0].v_pointer = rygel_external_album_art_factory_ref (src_value->data[0].v_pointer);
 
683
#line 684 "rygel-external-album-art-factory.c"
396
684
        } else {
 
685
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
397
686
                dest_value->data[0].v_pointer = NULL;
 
687
#line 688 "rygel-external-album-art-factory.c"
398
688
        }
399
689
}
400
690
 
401
691
 
402
692
static gpointer rygel_external_value_album_art_factory_peek_pointer (const GValue* value) {
 
693
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
403
694
        return value->data[0].v_pointer;
 
695
#line 696 "rygel-external-album-art-factory.c"
404
696
}
405
697
 
406
698
 
407
699
static gchar* rygel_external_value_album_art_factory_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
 
700
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
408
701
        if (collect_values[0].v_pointer) {
 
702
#line 703 "rygel-external-album-art-factory.c"
409
703
                RygelExternalAlbumArtFactory* object;
410
704
                object = collect_values[0].v_pointer;
 
705
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
411
706
                if (object->parent_instance.g_class == NULL) {
 
707
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
412
708
                        return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
 
709
#line 710 "rygel-external-album-art-factory.c"
413
710
                } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
 
711
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
414
712
                        return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
 
713
#line 714 "rygel-external-album-art-factory.c"
415
714
                }
 
715
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
416
716
                value->data[0].v_pointer = rygel_external_album_art_factory_ref (object);
 
717
#line 718 "rygel-external-album-art-factory.c"
417
718
        } else {
 
719
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
418
720
                value->data[0].v_pointer = NULL;
 
721
#line 722 "rygel-external-album-art-factory.c"
419
722
        }
 
723
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
420
724
        return NULL;
 
725
#line 726 "rygel-external-album-art-factory.c"
421
726
}
422
727
 
423
728
 
424
729
static gchar* rygel_external_value_album_art_factory_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
425
730
        RygelExternalAlbumArtFactory** object_p;
426
731
        object_p = collect_values[0].v_pointer;
 
732
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
427
733
        if (!object_p) {
 
734
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
428
735
                return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
 
736
#line 737 "rygel-external-album-art-factory.c"
429
737
        }
 
738
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
430
739
        if (!value->data[0].v_pointer) {
 
740
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
431
741
                *object_p = NULL;
 
742
#line 743 "rygel-external-album-art-factory.c"
432
743
        } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
 
744
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
433
745
                *object_p = value->data[0].v_pointer;
 
746
#line 747 "rygel-external-album-art-factory.c"
434
747
        } else {
 
748
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
435
749
                *object_p = rygel_external_album_art_factory_ref (value->data[0].v_pointer);
 
750
#line 751 "rygel-external-album-art-factory.c"
436
751
        }
 
752
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
437
753
        return NULL;
 
754
#line 755 "rygel-external-album-art-factory.c"
438
755
}
439
756
 
440
757
 
441
758
GParamSpec* rygel_external_param_spec_album_art_factory (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
442
759
        RygelExternalParamSpecAlbumArtFactory* spec;
 
760
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
443
761
        g_return_val_if_fail (g_type_is_a (object_type, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY), NULL);
 
762
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
444
763
        spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
 
764
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
445
765
        G_PARAM_SPEC (spec)->value_type = object_type;
 
766
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
446
767
        return G_PARAM_SPEC (spec);
 
768
#line 769 "rygel-external-album-art-factory.c"
447
769
}
448
770
 
449
771
 
450
772
gpointer rygel_external_value_get_album_art_factory (const GValue* value) {
 
773
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
451
774
        g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY), NULL);
 
775
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
452
776
        return value->data[0].v_pointer;
 
777
#line 778 "rygel-external-album-art-factory.c"
453
778
}
454
779
 
455
780
 
456
781
void rygel_external_value_set_album_art_factory (GValue* value, gpointer v_object) {
457
782
        RygelExternalAlbumArtFactory* old;
 
783
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
458
784
        g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY));
 
785
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
459
786
        old = value->data[0].v_pointer;
 
787
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
460
788
        if (v_object) {
 
789
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
461
790
                g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY));
 
791
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
462
792
                g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
 
793
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
463
794
                value->data[0].v_pointer = v_object;
 
795
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
464
796
                rygel_external_album_art_factory_ref (value->data[0].v_pointer);
 
797
#line 798 "rygel-external-album-art-factory.c"
465
798
        } else {
 
799
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
466
800
                value->data[0].v_pointer = NULL;
 
801
#line 802 "rygel-external-album-art-factory.c"
467
802
        }
 
803
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
468
804
        if (old) {
 
805
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
469
806
                rygel_external_album_art_factory_unref (old);
 
807
#line 808 "rygel-external-album-art-factory.c"
470
808
        }
471
809
}
472
810
 
473
811
 
474
812
void rygel_external_value_take_album_art_factory (GValue* value, gpointer v_object) {
475
813
        RygelExternalAlbumArtFactory* old;
 
814
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
476
815
        g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY));
 
816
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
477
817
        old = value->data[0].v_pointer;
 
818
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
478
819
        if (v_object) {
 
820
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
479
821
                g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_EXTERNAL_TYPE_ALBUM_ART_FACTORY));
 
822
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
480
823
                g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
 
824
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
481
825
                value->data[0].v_pointer = v_object;
 
826
#line 827 "rygel-external-album-art-factory.c"
482
827
        } else {
 
828
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
483
829
                value->data[0].v_pointer = NULL;
 
830
#line 831 "rygel-external-album-art-factory.c"
484
831
        }
 
832
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
485
833
        if (old) {
 
834
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
486
835
                rygel_external_album_art_factory_unref (old);
 
836
#line 837 "rygel-external-album-art-factory.c"
487
837
        }
488
838
}
489
839
 
490
840
 
491
841
static void rygel_external_album_art_factory_class_init (RygelExternalAlbumArtFactoryClass * klass) {
 
842
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
492
843
        rygel_external_album_art_factory_parent_class = g_type_class_peek_parent (klass);
 
844
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
493
845
        RYGEL_EXTERNAL_ALBUM_ART_FACTORY_CLASS (klass)->finalize = rygel_external_album_art_factory_finalize;
 
846
#line 847 "rygel-external-album-art-factory.c"
494
847
}
495
848
 
496
849
 
497
850
static void rygel_external_album_art_factory_instance_init (RygelExternalAlbumArtFactory * self) {
 
851
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
498
852
        self->ref_count = 1;
 
853
#line 854 "rygel-external-album-art-factory.c"
499
854
}
500
855
 
501
856
 
502
857
static void rygel_external_album_art_factory_finalize (RygelExternalAlbumArtFactory* obj) {
503
858
        RygelExternalAlbumArtFactory * self;
 
859
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
504
860
        self = RYGEL_EXTERNAL_ALBUM_ART_FACTORY (obj);
 
861
#line 862 "rygel-external-album-art-factory.c"
505
862
}
506
863
 
507
864
 
525
882
gpointer rygel_external_album_art_factory_ref (gpointer instance) {
526
883
        RygelExternalAlbumArtFactory* self;
527
884
        self = instance;
 
885
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
528
886
        g_atomic_int_inc (&self->ref_count);
 
887
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
529
888
        return instance;
 
889
#line 890 "rygel-external-album-art-factory.c"
530
890
}
531
891
 
532
892
 
533
893
void rygel_external_album_art_factory_unref (gpointer instance) {
534
894
        RygelExternalAlbumArtFactory* self;
535
895
        self = instance;
 
896
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
536
897
        if (g_atomic_int_dec_and_test (&self->ref_count)) {
 
898
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
537
899
                RYGEL_EXTERNAL_ALBUM_ART_FACTORY_GET_CLASS (self)->finalize (self);
 
900
#line 30 "/home/jens/Source/rygel/src/plugins/external/rygel-external-album-art-factory.vala"
538
901
                g_type_free_instance ((GTypeInstance *) self);
 
902
#line 903 "rygel-external-album-art-factory.c"
539
903
        }
540
904
}
541
905