Debian Codegraph @

libbrasero-media/brasero-medium.h

raw symbols SCIP
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3 * Libbrasero-media
4 * Copyright (C) Philippe Rouquier 2005-2009 <[email protected]>
5 *
6 * Libbrasero-media is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * The Libbrasero-media authors hereby grant permission for non-GPL compatible
12 * GStreamer plugins to be used and distributed together with GStreamer
13 * and Libbrasero-media. This permission is above and beyond the permissions granted
14 * by the GPL license by which Libbrasero-media is covered. If you modify this code
15 * you may extend this exception to your version of the code, but you are not
16 * obligated to do so. If you do not wish to do so, delete this exception
17 * statement from your version.
18 *
19 * Libbrasero-media is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Library General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to:
26 * The Free Software Foundation, Inc.,
27 * 51 Franklin Street, Fifth Floor
28 * Boston, MA 02110-1301, USA.
29 */
30
31 #include <glib-object.h>
32
33 #include <brasero-media.h>
34
35 #ifndef _BURN_MEDIUM_H_
36 #define _BURN_MEDIUM_H_
37
38 G_BEGIN_DECLS
39
40 #define BRASERO_TYPE_MEDIUM (brasero_medium_get_type ())
41 #define BRASERO_MEDIUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_MEDIUM, BraseroMedium))
42 #define BRASERO_MEDIUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_MEDIUM, BraseroMediumClass))
43 #define BRASERO_IS_MEDIUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_MEDIUM))
44 #define BRASERO_IS_MEDIUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_MEDIUM))
45 #define BRASERO_MEDIUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_MEDIUM, BraseroMediumClass))
46
47 typedef struct _BraseroMediumClass BraseroMediumClass;
48
49 /**
50 * BraseroMedium:
51 *
52 * Represents a physical medium currently inserted in a #BraseroDrive.
53 **/
54 typedef struct _BraseroMedium BraseroMedium;
55
56 /**
57 * BraseroDrive:
58 *
59 * Represents a physical drive currently connected.
60 **/
61 typedef struct _BraseroDrive BraseroDrive;
62
63 struct _BraseroMediumClass
64 {
65 GObjectClass parent_class;
66 };
67
68 struct _BraseroMedium
69 {
70 GObject parent_instance;
71 };
72
73 GType brasero_medium_get_type (void) G_GNUC_CONST;
74
75
76 BraseroMedia
77 brasero_medium_get_status (BraseroMedium *medium);
78
79 guint64
80 brasero_medium_get_max_write_speed (BraseroMedium *medium);
81
82 guint64 *
83 brasero_medium_get_write_speeds (BraseroMedium *medium);
84
85 void
86 brasero_medium_get_free_space (BraseroMedium *medium,
87 goffset *bytes,
88 goffset *blocks);
89
90 void
91 brasero_medium_get_capacity (BraseroMedium *medium,
92 goffset *bytes,
93 goffset *blocks);
94
95 void
96 brasero_medium_get_data_size (BraseroMedium *medium,
97 goffset *bytes,
98 goffset *blocks);
99
100 gint64
101 brasero_medium_get_next_writable_address (BraseroMedium *medium);
102
103 gboolean
104 brasero_medium_can_be_rewritten (BraseroMedium *medium);
105
106 gboolean
107 brasero_medium_can_be_written (BraseroMedium *medium);
108
109 const gchar *
110 brasero_medium_get_CD_TEXT_title (BraseroMedium *medium);
111
112 const gchar *
113 brasero_medium_get_type_string (BraseroMedium *medium);
114
115 gchar *
116 brasero_medium_get_tooltip (BraseroMedium *medium);
117
118 BraseroDrive *
119 brasero_medium_get_drive (BraseroMedium *medium);
120
121 guint
122 brasero_medium_get_track_num (BraseroMedium *medium);
123
124 gboolean
125 brasero_medium_get_last_data_track_space (BraseroMedium *medium,
126 goffset *bytes,
127 goffset *sectors);
128
129 gboolean
130 brasero_medium_get_last_data_track_address (BraseroMedium *medium,
131 goffset *bytes,
132 goffset *sectors);
133
134 gboolean
135 brasero_medium_get_track_space (BraseroMedium *medium,
136 guint num,
137 goffset *bytes,
138 goffset *sectors);
139
140 gboolean
141 brasero_medium_get_track_address (BraseroMedium *medium,
142 guint num,
143 goffset *bytes,
144 goffset *sectors);
145
146 gboolean
147 brasero_medium_can_use_dummy_for_sao (BraseroMedium *medium);
148
149 gboolean
150 brasero_medium_can_use_dummy_for_tao (BraseroMedium *medium);
151
152 gboolean
153 brasero_medium_can_use_burnfree (BraseroMedium *medium);
154
155 gboolean
156 brasero_medium_can_use_sao (BraseroMedium *medium);
157
158 gboolean
159 brasero_medium_can_use_tao (BraseroMedium *medium);
160
161 G_END_DECLS
162
163 #endif /* _BURN_MEDIUM_H_ */