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

« back to all changes in this revision

Viewing changes to libbrasero-burn/brasero-track-data.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-11-26 16:20:01 UTC
  • mfrom: (1.1.34 upstream)
  • Revision ID: james.westby@ubuntu.com-20091126162001-adzp6h0x5ow9bc4b
Tags: 2.29.2-0ubuntu1
* New upstream release:
  - Integrate Brasero with PackageKit
  - Gobject-introspection support for libbrasero-media and libbrasero-burn
  - Added Tracker support for searches besides Beagle
  - Fix compile failure using --disable-introspection see bgo #602027
  - Removed deprecated GLib symbols fixes bgo #601040
  - Fix #601871 - Wrong remaining space when audio CD of size greater than 70
    min
  - Fix #601496 - Select disc image selector allows to selecd pictures
  - Fix #601109 - burning disks with burn:// doesn't set the disk label
  - Fix #601259 - Problems with folder depth
  - Fix #599655 - brasero crashed with SIGSEGV in g_main_context_dispatch()
  - Fix #588323 - crash in Disc Copier: Dragging a track from Banshee
  - Fix #600007 - Memory leaks in brasero
  - Fix #600293 - Fails to build error: cannot convert to a pointer type
* debian/control.in:
  - Bump build-depends on libglib2.0-dev
* debian/patches/012_build_error.patch:
  - Applied upstream
* debian/patches/010_lpi.patch:
* debian/patches/011_nautilus_menu_move.patch:
* debian/patches/99_autoconf.patch:
  - Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
/**
128
128
 * brasero_track_data_set_source:
129
 
 * @track: a #BraseroTrackData
130
 
 * @grafts: a #GSList of #BraseroGraftPt
131
 
 * @unreadable: a #GSList of URIS as strings
 
129
 * @track: a #BraseroTrackData.
 
130
 * @grafts: (element-type BraseroBurn.GraftPt) (in) (transfer full): a #GSList of #BraseroGraftPt.
 
131
 * @unreadable: (element-type utf8) (allow-none) (in) (transfer full): a #GSList of URIS as strings or %NULL.
132
132
 *
133
133
 * Sets the lists of grafts points (@grafts) and excluded
134
134
 * URIs (@unreadable) to be used to create an image.
335
335
}
336
336
 
337
337
/**
338
 
 * brasero_track_data_get_fs:
 
338
 * brasero_track_data_get_grafts:
339
339
 * @track: a #BraseroTrackData
340
340
 *
341
341
 * Returns a list of #BraseroGraftPt.
342
342
 *
343
343
 * Do not free after usage as @track retains ownership.
344
344
 *
345
 
 * Return value: a #GSList of #BraseroGraftPt or NULL if empty.
 
345
 * Return value: (transfer none) (element-type BraseroBurn.GraftPt) (allow-none): a #GSList of #BraseroGraftPt or %NULL if empty.
346
346
 **/
347
347
 
348
348
GSList *
366
366
}
367
367
 
368
368
/**
 
369
 * brasero_track_data_get_excluded_list:
 
370
 * @track: a #BraseroTrackData.
 
371
 *
 
372
 * Returns a list of URIs which must not be included in
 
373
 * the image to be created.
 
374
 * Do not free the list or any of the URIs after
 
375
 * usage as @track retains ownership.
 
376
 *
 
377
 * Return value: (transfer none) (element-type utf8) (allow-none): a #GSList of #gchar * or %NULL if no
 
378
 * URI should be excluded.
 
379
 **/
 
380
 
 
381
GSList *
 
382
brasero_track_data_get_excluded_list (BraseroTrackData *track)
 
383
{
 
384
        BraseroTrackDataClass *klass;
 
385
 
 
386
        g_return_val_if_fail (BRASERO_IS_TRACK_DATA (track), NULL);
 
387
 
 
388
        klass = BRASERO_TRACK_DATA_GET_CLASS (track);
 
389
        return klass->get_excluded (track);
 
390
}
 
391
 
 
392
/**
369
393
 * brasero_track_data_get_excluded:
370
 
 * @track: a #BraseroTrackData
371
 
 * @copy: a #gboolean
 
394
 * @track: a #BraseroTrackData.
 
395
 * @copy: a #gboolean.
372
396
 *
373
397
 * Returns a list of URIs which must not be included in
374
398
 * the image to be created.
375
 
 * If @copy is TRUE then the @list is a copy and must
376
 
 * be freed once it is not needed anymore. If FALSE,
 
399
 * If @copy is %TRUE then the @list is a copy and must
 
400
 * be freed once it is not needed anymore. If %FALSE,
377
401
 * do not free after usage as @track retains ownership.
378
402
 *
379
 
 * Return value: a #GSList of #gchar * or NULL if no
 
403
 * Deprecated since 2.29.2
 
404
 *
 
405
 * Return value: a #GSList of #gchar * or %NULL if no
380
406
 * URI should be excluded.
381
407
 **/
382
408
 
383
 
GSList *
 
409
G_GNUC_DEPRECATED GSList *
384
410
brasero_track_data_get_excluded (BraseroTrackData *track,
385
411
                                 gboolean copy)
386
412
{
417
443
 
418
444
/**
419
445
 * brasero_track_data_get_paths:
420
 
 * @track: a #BraseroTrackData
421
 
 * @use_joliet: a #gboolean
422
 
 * @grafts_path: a #gchar
423
 
 * @excluded_path: a #gchar
424
 
 * @emptydir: a #gchar
425
 
 * @videodir: a #gchar or NULL
426
 
 * @error: a #GError
 
446
 * @track: a #BraseroTrackData.
 
447
 * @use_joliet: a #gboolean.
 
448
 * @grafts_path: a #gchar.
 
449
 * @excluded_path: a #gchar.
 
450
 * @emptydir: a #gchar.
 
451
 * @videodir: (allow-none): a #gchar or %NULL.
 
452
 * @error: a #GError.
427
453
 *
428
454
 * Write in @grafts_path (a path to a file) the graft points,
429
455
 * in @excluded_path (a path to a file) the list of paths to
436
462
 *
437
463
 * This function takes care of mangling.
438
464
 *
 
465
 * Deprecated since 2.29.2
 
466
 *
439
467
 * Return value: a #BraseroBurnResult.
440
468
 **/
441
469
 
442
 
BraseroBurnResult
 
470
G_GNUC_DEPRECATED BraseroBurnResult
443
471
brasero_track_data_get_paths (BraseroTrackData *track,
444
472
                              gboolean use_joliet,
445
473
                              const gchar *grafts_path,
471
499
}
472
500
 
473
501
/**
 
502
 * brasero_track_data_write_to_paths:
 
503
 * @track: a #BraseroTrackData.
 
504
 * @grafts_path: a #gchar.
 
505
 * @excluded_path: a #gchar.
 
506
 * @emptydir: a #gchar.
 
507
 * @videodir: (allow-none): a #gchar or %NULL.
 
508
 * @error: a #GError.
 
509
 *
 
510
 * Write to @grafts_path (a path to a file) the graft points,
 
511
 * and to @excluded_path (a path to a file) the list of paths to
 
512
 * be excluded; @emptydir is (path) is an empty
 
513
 * directory to be used for created directories;
 
514
 * @videodir (a path) is a directory to be used to build the
 
515
 * the video image.
 
516
 *
 
517
 * This is mostly for internal use by mkisofs and similar.
 
518
 *
 
519
 * This function takes care of file name mangling.
 
520
 *
 
521
 * Return value: a #BraseroBurnResult.
 
522
 **/
 
523
 
 
524
BraseroBurnResult
 
525
brasero_track_data_write_to_paths (BraseroTrackData *track,
 
526
                                   const gchar *grafts_path,
 
527
                                   const gchar *excluded_path,
 
528
                                   const gchar *emptydir,
 
529
                                   const gchar *videodir,
 
530
                                   GError **error)
 
531
{
 
532
        GSList *grafts;
 
533
        GSList *excluded;
 
534
        BraseroBurnResult result;
 
535
        BraseroTrackDataClass *klass;
 
536
 
 
537
        g_return_val_if_fail (BRASERO_IS_TRACK_DATA (track), BRASERO_BURN_NOT_SUPPORTED);
 
538
 
 
539
        klass = BRASERO_TRACK_DATA_GET_CLASS (track);
 
540
        grafts = klass->get_grafts (track);
 
541
        excluded = klass->get_excluded (track);
 
542
 
 
543
        result = brasero_mkisofs_base_write_to_files (grafts,
 
544
                                                      excluded,
 
545
                                                      brasero_track_data_get_fs (track),
 
546
                                                      emptydir,
 
547
                                                      videodir,
 
548
                                                      grafts_path,
 
549
                                                      excluded_path,
 
550
                                                      error);
 
551
        return result;
 
552
}
 
553
 
 
554
/**
474
555
 * brasero_track_data_get_file_num:
475
 
 * @track: a #BraseroTrackData
476
 
 * @file_num: a #guint64
 
556
 * @track: a #BraseroTrackData.
 
557
 * @file_num: (allow-none) (out): a #guint64 or %NULL.
477
558
 *
478
559
 * Sets the number of files (not directories) in @file_num.
479
560
 *
480
 
 * Return value: a #BraseroBurnResult. TRUE if @file_num
481
 
 * was set, FALSE otherwise.
 
561
 * Return value: a #BraseroBurnResult. %TRUE if @file_num
 
562
 * was set, %FALSE otherwise.
482
563
 **/
483
564
 
484
565
BraseroBurnResult