aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-20 17:19:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-20 17:19:58 +0200
commit8de73899e6297231feb9aa32d905b1aa5dd21549 (patch)
tree0be7def2aed3024e5eecd0c12e36adb1a26d82a6
parentNice comments. (diff)
downloadmusic-file-organizer-8de73899e6297231feb9aa32d905b1aa5dd21549.tar.xz
music-file-organizer-8de73899e6297231feb9aa32d905b1aa5dd21549.zip
Fix up the prototypes.
-rw-r--r--organizemusic.cpp12
1 files 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)