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
|
/* Totem Disc Content Detection
* (c) 2004 Ronald Bultje <rbultje@ronald.bitfreak.net>
*
* totem-disc.h: media content detection
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef TOTEM_DISC_H
#define TOTEM_DISC_H
#include <glib.h>
G_BEGIN_DECLS
typedef enum {
MEDIA_TYPE_ERROR = -1, /* error */
MEDIA_TYPE_DATA = 1,
MEDIA_TYPE_CDDA,
MEDIA_TYPE_VCD,
MEDIA_TYPE_DVD,
MEDIA_TYPE_DVB,
MEDIA_TYPE_NUM_TYPES
} TotemDiscMediaType;
#define MediaType TotemDiscMediaType
TotemDiscMediaType totem_cd_detect_type (const char *device,
GError **error);
TotemDiscMediaType totem_cd_detect_type_with_url (const char *device,
char **url,
GError **error);
TotemDiscMediaType totem_cd_detect_type_from_dir (const char *dir,
char **url,
GError **error);
const char * totem_cd_get_human_readable_name (TotemDiscMediaType type);
char * totem_cd_mrl_from_type (const char *scheme, const char *dir);
gboolean totem_cd_has_medium (const char *device);
G_END_DECLS
#endif /* TOTEM_DISC_H */
|