[brasero] Replace brasero_track_data_get_paths by brasero_track_data_write_to_path ()
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Replace brasero_track_data_get_paths by brasero_track_data_write_to_path ()
- Date: Sun, 8 Nov 2009 14:00:58 +0000 (UTC)
commit 03265d59bc14b4d6c73ae90a32aab4f80b3dfa5e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Thu Nov 5 21:39:44 2009 +0100
Replace brasero_track_data_get_paths by brasero_track_data_write_to_path ()
libbrasero-burn/brasero-track-data.c | 55 ++++++++++++++++++++++++++++++++++
libbrasero-burn/brasero-track-data.h | 8 +++++
plugins/cdrkit/burn-genisoimage.c | 13 ++++----
plugins/cdrtools/burn-mkisofs.c | 13 ++++----
plugins/growisofs/burn-growisofs.c | 13 ++++----
5 files changed, 81 insertions(+), 21 deletions(-)
---
diff --git a/libbrasero-burn/brasero-track-data.c b/libbrasero-burn/brasero-track-data.c
index 92c5d0c..0b8563c 100644
--- a/libbrasero-burn/brasero-track-data.c
+++ b/libbrasero-burn/brasero-track-data.c
@@ -462,6 +462,8 @@ brasero_track_data_get_excluded_real (BraseroTrackData *track)
*
* This function takes care of mangling.
*
+ * Deprecated since 2.29.2
+ *
* Return value: a #BraseroBurnResult.
**/
@@ -497,6 +499,59 @@ brasero_track_data_get_paths (BraseroTrackData *track,
}
/**
+ * brasero_track_data_write_to_paths:
+ * @track: a #BraseroTrackData.
+ * @grafts_path: a #gchar.
+ * @excluded_path: a #gchar.
+ * @emptydir: a #gchar.
+ * @videodir: (allow-none): a #gchar or %NULL.
+ * @error: a #GError.
+ *
+ * Write to @grafts_path (a path to a file) the graft points,
+ * and to @excluded_path (a path to a file) the list of paths to
+ * be excluded; @emptydir is (path) is an empty
+ * directory to be used for created directories;
+ * @videodir (a path) is a directory to be used to build the
+ * the video image.
+ *
+ * This is mostly for internal use by mkisofs and similar.
+ *
+ * This function takes care of file name mangling.
+ *
+ * Return value: a #BraseroBurnResult.
+ **/
+
+BraseroBurnResult
+brasero_track_data_write_to_paths (BraseroTrackData *track,
+ const gchar *grafts_path,
+ const gchar *excluded_path,
+ const gchar *emptydir,
+ const gchar *videodir,
+ GError **error)
+{
+ GSList *grafts;
+ GSList *excluded;
+ BraseroBurnResult result;
+ BraseroTrackDataClass *klass;
+
+ g_return_val_if_fail (BRASERO_IS_TRACK_DATA (track), BRASERO_BURN_NOT_SUPPORTED);
+
+ klass = BRASERO_TRACK_DATA_GET_CLASS (track);
+ grafts = klass->get_grafts (track);
+ excluded = klass->get_excluded (track);
+
+ result = brasero_mkisofs_base_write_to_files (grafts,
+ excluded,
+ brasero_track_data_get_fs (track),
+ emptydir,
+ videodir,
+ grafts_path,
+ excluded_path,
+ error);
+ return result;
+}
+
+/**
* brasero_track_data_get_file_num:
* @track: a #BraseroTrackData.
* @file_num: (allow-none) (out): a #guint64 or %NULL.
diff --git a/libbrasero-burn/brasero-track-data.h b/libbrasero-burn/brasero-track-data.h
index 3915aee..6cf873e 100644
--- a/libbrasero-burn/brasero-track-data.h
+++ b/libbrasero-burn/brasero-track-data.h
@@ -140,6 +140,14 @@ brasero_track_data_get_paths (BraseroTrackData *track,
GError **error);
BraseroBurnResult
+brasero_track_data_write_to_paths (BraseroTrackData *track,
+ const gchar *grafts_path,
+ const gchar *excluded_path,
+ const gchar *emptydir,
+ const gchar *videodir,
+ GError **error);
+
+BraseroBurnResult
brasero_track_data_get_file_num (BraseroTrackData *track,
guint64 *file_num);
diff --git a/plugins/cdrkit/burn-genisoimage.c b/plugins/cdrkit/burn-genisoimage.c
index 02f3bc9..bb02814 100644
--- a/plugins/cdrkit/burn-genisoimage.c
+++ b/plugins/cdrkit/burn-genisoimage.c
@@ -312,13 +312,12 @@ brasero_genisoimage_set_argv_image (BraseroGenisoimage *genisoimage,
return result;
}
- result = brasero_track_data_get_paths (BRASERO_TRACK_DATA (track),
- (image_fs & BRASERO_IMAGE_FS_JOLIET) != 0,
- grafts_path,
- excluded_path,
- emptydir,
- videodir,
- error);
+ result = brasero_track_data_write_to_paths (BRASERO_TRACK_DATA (track),
+ grafts_path,
+ excluded_path,
+ emptydir,
+ videodir,
+ error);
g_free (emptydir);
if (result != BRASERO_BURN_OK) {
diff --git a/plugins/cdrtools/burn-mkisofs.c b/plugins/cdrtools/burn-mkisofs.c
index 95de80e..0d73227 100644
--- a/plugins/cdrtools/burn-mkisofs.c
+++ b/plugins/cdrtools/burn-mkisofs.c
@@ -309,13 +309,12 @@ brasero_mkisofs_set_argv_image (BraseroMkisofs *mkisofs,
return result;
}
- result = brasero_track_data_get_paths (BRASERO_TRACK_DATA (track),
- (image_fs & BRASERO_IMAGE_FS_JOLIET) != 0,
- grafts_path,
- excluded_path,
- emptydir,
- videodir,
- error);
+ result = brasero_track_data_write_to_paths (BRASERO_TRACK_DATA (track),
+ grafts_path,
+ excluded_path,
+ emptydir,
+ videodir,
+ error);
g_free (emptydir);
if (result != BRASERO_BURN_OK) {
diff --git a/plugins/growisofs/burn-growisofs.c b/plugins/growisofs/burn-growisofs.c
index 94a6b28..4e7f0be 100644
--- a/plugins/growisofs/burn-growisofs.c
+++ b/plugins/growisofs/burn-growisofs.c
@@ -343,13 +343,12 @@ brasero_growisofs_set_mkisofs_argv (BraseroGrowisofs *growisofs,
return result;
}
- result = brasero_track_data_get_paths (BRASERO_TRACK_DATA (track),
- (fs_type & BRASERO_IMAGE_FS_JOLIET) != 0,
- grafts_path,
- excluded_path,
- emptydir,
- videodir,
- error);
+ result = brasero_track_data_write_to_paths (BRASERO_TRACK_DATA (track),
+ grafts_path,
+ excluded_path,
+ emptydir,
+ videodir,
+ error);
g_free (emptydir);
if (result != BRASERO_BURN_OK) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]