| OGMDvd Reference Manual | ||||
|---|---|---|---|---|
#include <ogmdvd-disc.h> enum OGMDvdDiscError; OGMDvdDisc* ogmdvd_disc_open (const gchar *device, GError **error); void ogmdvd_disc_ref (OGMDvdDisc *disc); void ogmdvd_disc_unref (OGMDvdDisc *disc); gchar* ogmdvd_disc_get_label (OGMDvdDisc *disc); gchar* ogmdvd_disc_get_id (OGMDvdDisc *disc); gchar* ogmdvd_disc_get_device (OGMDvdDisc *disc); gint64 ogmdvd_disc_get_vmg_size (OGMDvdDisc *disc); gint ogmdvd_disc_get_n_titles (OGMDvdDisc *disc); OGMDvdTitle* ogmdvd_disc_get_nth_title (OGMDvdDisc *disc, guint nr); GList* ogmdvd_disc_get_titles (OGMDvdDisc *disc);
typedef enum
{
OGMDVD_DISC_ERROR_EXIST, /* No such file or directory */
OGMDVD_DISC_ERROR_PERM, /* Permission denied to access device */
OGMDVD_DISC_ERROR_TRAY, /* Tray seems to be opened */
OGMDVD_DISC_ERROR_DEV, /* Device does not contain a valid DVD video */
OGMDVD_DISC_ERROR_PATH, /* Path does not contain a valid DVD structure */
OGMDVD_DISC_ERROR_ACCESS, /* No such directory, block device or iso file */
OGMDVD_DISC_ERROR_VMG, /* Cannot open video manager */
OGMDVD_DISC_ERROR_UNKNOWN /* Unknown error */
} OGMDvdDiscError;
Error codes returned by ogmdvd_disc_open()
| No such file or directory | |
| Permission denied to access device | |
| Tray seems to be opened | |
| Device does not contain a valid DVD video | |
| Path does not contain a valid DVD structure | |
| No such directory, block device or iso file | |
| Cannot open video manager | |
| Unknown error |
OGMDvdDisc* ogmdvd_disc_open (const gchar *device, GError **error);
Creates a new OGMDvdDisc given a DVD device.
|
A DVD device. |
|
Location to store the error occuring, or NULL to ignore errors. |
Returns : |
The new OGMDvdDisc, or NULL |
void ogmdvd_disc_ref (OGMDvdDisc *disc);
Increments the reference count of an OGMDvdDisc.
|
An OGMDvdDisc |
void ogmdvd_disc_unref (OGMDvdDisc *disc);
Decrements the reference count of an OGMDvdDisc.
|
An OGMDvdDisc |
gchar* ogmdvd_disc_get_label (OGMDvdDisc *disc);
Returns the label of the DVD.
|
An OGMDvdDisc |
Returns : |
The label of the DVD, or NULL |
gchar* ogmdvd_disc_get_id (OGMDvdDisc *disc);
Returns a unique 128 bit disc identifier.
|
An OGMDvdDisc |
Returns : |
The identifier, or NULL |
gchar* ogmdvd_disc_get_device (OGMDvdDisc *disc);
Returns the DVD device.
|
An OGMDvdDisc |
Returns : |
The device of the DVD. |
gint64 ogmdvd_disc_get_vmg_size (OGMDvdDisc *disc);
Returns the size of the video manager in bytes.
|
An OGMDvdDisc |
Returns : |
The size in bytes, or -1 |
gint ogmdvd_disc_get_n_titles (OGMDvdDisc *disc);
Returns the number of video titles of this DVD.
|
An OGMDvdDisc |
Returns : |
The number of video titles, or -1 |
OGMDvdTitle* ogmdvd_disc_get_nth_title (OGMDvdDisc *disc, guint nr);
Returns the video title at position nr. The first nr is 0.
|
An OGMDvdDisc |
|
The title number |
Returns : |
The OGMDvdTitle, or NULL |
GList* ogmdvd_disc_get_titles (OGMDvdDisc *disc);
Returns a list of all the titles of disc.
|
An OGMDvdDisc |
Returns : |
A GList, or NULL |