summaryrefslogtreecommitdiff
path: root/burn-sharp/glue.c
blob: 35268aad2d2f52d1018e71b21e4568f621cd0aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

#include <nautilus-burn-recorder.h>

struct NautilusBurnRecorderTrack *
nautilus_burn_glue_create_track (const char *filename,
				 NautilusBurnRecorderTrackType type)
{
	struct NautilusBurnRecorderTrack *track;

	track = g_new0 (typeof (struct NautilusBurnRecorderTrack), 1);

	track->type = type;
	
	if (type == NAUTILUS_BURN_RECORDER_TRACK_TYPE_AUDIO) {
		track->contents.audio.filename = g_strdup (filename);
	} else {
		track->contents.data.filename = g_strdup (filename);
	}

	return track;
}

char *
nautilus_burn_glue_drive_get_id (NautilusBurnDrive *drive)
{
	return g_strdup (drive->cdrecord_id);
}

NautilusBurnDriveType
nautilus_burn_glue_drive_get_type (NautilusBurnDrive *drive)
{
	return drive->type;
}

char *
nautilus_burn_glue_drive_get_display_name (NautilusBurnDrive *drive)
{
	return g_strdup (drive->display_name);
}

int
nautilus_burn_glue_drive_get_max_read_speed (NautilusBurnDrive *drive)
{
	return drive->max_speed_read;
}

int
nautilus_burn_glue_drive_get_max_write_speed (NautilusBurnDrive *drive)
{
	return drive->max_speed_write;
}

char *
nautilus_burn_glue_drive_get_device (NautilusBurnDrive *drive)
{
	return g_strdup (drive->device);
}