[brasero] Added a new private function to get the temporary file type when copying a medium from the same driv
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Added a new private function to get the temporary file type when copying a medium from the same driv
- Date: Sat, 1 Aug 2009 08:26:12 +0000 (UTC)
commit 6913c1ff0f428c49577e5c0e701d565de86fd622
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Fri Jul 31 15:34:08 2009 +0200
Added a new private function to get the temporary file type when copying a medium from the same drive
libbrasero-burn/brasero-caps-session.c | 27 +++++++++++++++++++++++++--
libbrasero-burn/brasero-session-helper.h | 4 ++++
2 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-burn/brasero-caps-session.c b/libbrasero-burn/brasero-caps-session.c
index 5becd7a..a734b44 100644
--- a/libbrasero-burn/brasero-caps-session.c
+++ b/libbrasero-burn/brasero-caps-session.c
@@ -726,6 +726,7 @@ brasero_burn_session_output_supported (BraseroBurnSession *session,
static BraseroBurnResult
brasero_burn_caps_is_session_supported_same_src_dest (BraseroBurnCaps *self,
BraseroBurnSession *session,
+ BraseroTrackType *tmp_type,
gboolean use_flags)
{
GSList *iter;
@@ -797,8 +798,14 @@ brasero_burn_caps_is_session_supported_same_src_dest (BraseroBurnCaps *self,
"Tested medium (%s)",
result ? "working":"not working");
- if (result)
+ if (result) {
+ if (tmp_type) {
+ tmp_type->type = BRASERO_TRACK_TYPE_IMAGE;
+ tmp_type->subtype.img_format = format;
+ }
+
return BRASERO_BURN_OK;
+ }
}
}
@@ -806,6 +813,22 @@ brasero_burn_caps_is_session_supported_same_src_dest (BraseroBurnCaps *self,
}
BraseroBurnResult
+brasero_burn_session_get_tmp_image_type_same_src_dest (BraseroBurnSession *session,
+ BraseroTrackType *image_type)
+{
+ BraseroBurnResult result;
+ BraseroBurnCaps *self;
+
+ self = brasero_burn_caps_get_default ();
+ result = brasero_burn_caps_is_session_supported_same_src_dest (self,
+ session,
+ image_type,
+ TRUE);
+ g_object_unref (self);
+ return result;
+}
+
+BraseroBurnResult
brasero_burn_session_can_burn (BraseroBurnSession *session,
gboolean use_flags)
{
@@ -821,7 +844,7 @@ brasero_burn_session_can_burn (BraseroBurnSession *session,
if (brasero_burn_session_same_src_dest_drive (session)) {
BraseroBurnResult res;
- res = brasero_burn_caps_is_session_supported_same_src_dest (self, session, use_flags);
+ res = brasero_burn_caps_is_session_supported_same_src_dest (self, session, NULL, use_flags);
g_object_unref (self);
return res;
}
diff --git a/libbrasero-burn/brasero-session-helper.h b/libbrasero-burn/brasero-session-helper.h
index ee2793b..7189d70 100644
--- a/libbrasero-burn/brasero-session-helper.h
+++ b/libbrasero-burn/brasero-session-helper.h
@@ -92,6 +92,10 @@ brasero_burn_session_get_tmp_dir (BraseroBurnSession *session,
gchar **path,
GError **error);
+BraseroBurnResult
+brasero_burn_session_get_tmp_image_type_same_src_dest (BraseroBurnSession *session,
+ BraseroTrackType *image_type);
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]