~ubuntu-branches/ubuntu/maverick/brasero/maverick

« back to all changes in this revision

Viewing changes to libbrasero-burn/burn-basics.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-11-26 16:20:01 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20091126162001-5iw2jzxdx8l31okz
Tags: upstream-2.29.2
ImportĀ upstreamĀ versionĀ 2.29.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        g_object_unref (self);
209
209
}
210
210
 
 
211
/**
 
212
 * brasero_burn_library_start:
 
213
 * @argc: an #int.
 
214
 * @argv: a #char **.
 
215
 *
 
216
 * Starts the library. This function must be called
 
217
 * before using any of the functions.
 
218
 *
 
219
 * Rename to: init
 
220
 *
 
221
 * Returns: a #gboolean
 
222
 **/
 
223
 
211
224
gboolean
212
225
brasero_burn_library_start (int *argc,
213
226
                            char **argv [])
229
242
        g_setenv ("DBUS_SESSION_BUS_ADDRESS", "autolaunch:", TRUE);
230
243
#endif
231
244
 
232
 
        /* Initialize external libraries (threads... */
 
245
        /* Initialize external libraries (threads...) */
233
246
        if (!g_thread_supported ())
234
247
                g_thread_init (NULL);
235
248
 
281
294
 * This function returns the list of plugins that 
282
295
 * are available to libbrasero-burn.
283
296
 *
284
 
 * Returns: a #GSList that must be destroyed when not needed and each object unreffed.
 
297
 * Returns: (element-type GObject.Object) (transfer full):a #GSList that must be destroyed when not needed and each object unreffed.
285
298
 **/
286
299
 
287
300
GSList *
291
304
        return brasero_plugin_manager_get_plugins_list (plugin_manager);
292
305
}
293
306
 
 
307
/**
 
308
 * brasero_burn_library_stop:
 
309
 *
 
310
 * Stop the library. Don't use any of the functions or
 
311
 * objects afterwards
 
312
 *
 
313
 * Rename to: deinit
 
314
 *
 
315
 **/
294
316
void
295
317
brasero_burn_library_stop (void)
296
318
{
318
340
        gconf_client_remove_dir (client, "/apps/brasero", NULL);
319
341
}
320
342
 
 
343
/**
 
344
 * brasero_burn_library_can_checksum:
 
345
 *
 
346
 * Checks whether the library can do any kind of
 
347
 * checksum at all.
 
348
 *
 
349
 * Returns: a #gboolean
 
350
 */
 
351
 
321
352
gboolean
322
353
brasero_burn_library_can_checksum (void)
323
354
{
340
371
                        BraseroCapsLink *link;
341
372
 
342
373
                        link = links->data;
343
 
                        if (brasero_caps_link_active (link)) {
 
374
                        if (brasero_caps_link_active (link, 0)) {
344
375
                                g_object_unref (self);
345
376
                                return TRUE;
346
377
                        }
351
382
        return FALSE;
352
383
}
353
384
 
 
385
/**
 
386
 * brasero_burn_library_input_supported:
 
387
 * @type: a #BraseroTrackType
 
388
 *
 
389
 * Checks whether @type can be used as input.
 
390
 *
 
391
 * Returns: a #BraseroBurnResult
 
392
 */
 
393
 
354
394
BraseroBurnResult
355
395
brasero_burn_library_input_supported (BraseroTrackType *type)
356
396
{
436
476
                        BraseroPlugin *plugin;
437
477
 
438
478
                        plugin = plugins->data;
439
 
                        if (brasero_plugin_get_active (plugin)) {
 
479
                        /* Ignore plugin errors */
 
480
                        if (brasero_plugin_get_active (plugin, TRUE)) {
440
481
                                /* this link is valid */
441
482
                                active = TRUE;
442
483
                                break;