Search
lxdream.org :: lxdream/src/gdrom/gdimage.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdimage.c
changeset 709:18c39a8e504c
prev678:35eb00945316
next720:b5594d1ac80a
author nkeynes
date Wed Jun 25 10:40:45 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Commit OSX CD-ROM driver work-in-progress
file annotate diff log raw
1.1 --- a/src/gdrom/gdimage.c Thu May 29 11:00:26 2008 +0000
1.2 +++ b/src/gdrom/gdimage.c Wed Jun 25 10:40:45 2008 +0000
1.3 @@ -477,3 +477,24 @@
1.4 }
1.5 }
1.6
1.7 +gdrom_device_t gdrom_device_new( const gchar *name, const gchar *dev_name )
1.8 +{
1.9 + struct gdrom_device *dev = g_malloc0( sizeof(struct gdrom_device) );
1.10 + dev->name = g_strdup(name);
1.11 + dev->device_name = g_strdup(dev_name);
1.12 + return dev;
1.13 +}
1.14 +
1.15 +void gdrom_device_destroy( gdrom_device_t dev )
1.16 +{
1.17 + if( dev->name != NULL ) {
1.18 + g_free( dev->name );
1.19 + dev->name = NULL;
1.20 + }
1.21 + if( dev->device_name != NULL ) {
1.22 + g_free( dev->device_name );
1.23 + dev->device_name = NULL;
1.24 + }
1.25 + g_free( dev );
1.26 +}
1.27 +
1.28 \ No newline at end of file
.