Search
lxdream.org :: lxdream/src/gdrom/gdrom.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.c
changeset 613:c2dd87f947b2
prev561:533f6b478071
next644:ccae4bfa5f82
author nkeynes
date Mon Jan 28 02:37:09 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Add general purpose relative filename helper
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/gdrom/gdrom.c Mon Jan 28 02:37:09 2008 +0000
1.3 @@ -116,3 +116,11 @@
1.4 {
1.5 return gdrom_disc;
1.6 }
1.7 +
1.8 +gchar *gdrom_get_relative_filename( const gchar *base_name, const gchar *rel_name )
1.9 +{
1.10 + gchar *dirname = g_path_get_dirname(base_name);
1.11 + gchar *pathname = g_strdup_printf( "%s%c%s", dirname, G_DIR_SEPARATOR, rel_name );
1.12 + g_free(dirname);
1.13 + return pathname;
1.14 +}
.