From 8de73899e6297231feb9aa32d905b1aa5dd21549 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 20 Aug 2012 17:19:58 +0200 Subject: Fix up the prototypes. --- organizemusic.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/organizemusic.cpp b/organizemusic.cpp index 0363e47..608b6e6 100644 --- a/organizemusic.cpp +++ b/organizemusic.cpp @@ -32,17 +32,23 @@ using namespace std; static string base_destination; static Transliterator *transliterator; + +/* Recursive triangle. */ void process_file(const char *filename, ino_t inode); void process_directory(const char *directory); void process_path(const char *path); +/* Filesystem actions. */ +void rename_path(const string &source, const string &stem, ino_t inode); +void make_parents(const string &filepath); + +/* String generators. */ string generate_path(const AudioFile &audio); string truncated(const string &str, const string &ext); string transliterated(const string &str); -void strip_slash(string &name); +string strip_slash(const string &name); void disc_track(unsigned int disc, unsigned int track, ostringstream &path); -void rename_path(const string &source, const string &stem, ino_t inode); -void make_parents(const string &filepath); + /* Converts forward slashes to hyphens. */ string strip_slash(const string &name) -- cgit v1.2.3-59-g8ed1b