From: Kaj-Michael Lang Date: Wed, 9 Apr 2008 09:29:34 +0000 (+0300) Subject: Use define for mmc paths X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a667761020e6a5f7ed33ff623ec0c6eb6ad288c;p=mapper Use define for mmc paths --- diff --git a/src/audio-note.c b/src/audio-note.c index 445b633..073642f 100644 --- a/src/audio-note.c +++ b/src/audio-note.c @@ -42,6 +42,9 @@ static gboolean audio_note_stop(audio_note_ui *ui); #define GST_TIME_TO_SECS(t) \ (gdouble) (((gdouble)(t)) / (gdouble) GST_SECOND) /* GST_SECOND should be 1e9 */ +#define NOTES_BASEDIR_MMC1 "/media/mmc1/MapperAudioNotes" +#define NOTES_BASEDIR_MMC2 "/media/mmc2/MapperAudioNotes" + static void audio_note_set_length(audio_note_ui *ui, gdouble secs) { @@ -107,7 +110,7 @@ struct tm *tmp; /* XXX: Make this a configuration option */ #ifdef WITH_DEVICE_770 -basedir="/media/mmc1/MapperAudioNotes"; +basedir=NOTES_BASEDIR_MMC1; if (g_mkdir_with_parents(basedir, 0775)==-1) { MACRO_BANNER_SHOW_INFO(_window, _("Failed to create directory for sound files!")); return TRUE;