aft: Make get_afsi_of_path() static.
authorAndre Noll <maan@systemlinux.org>
Sat, 28 Sep 2013 19:08:41 +0000 (21:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 3 Nov 2013 14:50:24 +0000 (15:50 +0100)
Also simplify the documentation of the return value.

afs.h
aft.c

diff --git a/afs.h b/afs.h
index 827b6aa69fd56fdcccc9ec2e723c50a4b231c59e..8a6b927c74f78f86cad9e748fa04dd02a88bb2ef 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -281,7 +281,6 @@ int open_and_update_audio_file(struct osl_row *aft_row, long score,
 int load_afd(int shmid, struct audio_file_data *afd);
 int get_afsi_of_row(const struct osl_row *row, struct afs_info *afsi);
 int get_afhi_of_row(const struct osl_row *row, struct afh_info *afhi);
 int load_afd(int shmid, struct audio_file_data *afd);
 int get_afsi_of_row(const struct osl_row *row, struct afs_info *afsi);
 int get_afhi_of_row(const struct osl_row *row, struct afh_info *afhi);
-int get_afsi_of_path(const char *path, struct afs_info *afsi);
 int get_audio_file_path_of_row(const struct osl_row *row, char **path);
 int audio_file_loop(void *private_data, osl_rbtree_loop_func *func);
 void aft_check_callback(int fd, __a_unused const struct osl_object *query);
 int get_audio_file_path_of_row(const struct osl_row *row, char **path);
 int audio_file_loop(void *private_data, osl_rbtree_loop_func *func);
 void aft_check_callback(int fd, __a_unused const struct osl_object *query);
diff --git a/aft.c b/aft.c
index af2c6889f555fdea3dd6f8d2a67688d622751542..f529416aec375779419a1a936699f6f0584da051 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -542,15 +542,15 @@ int get_afsi_of_row(const struct osl_row *row, struct afs_info *afsi)
        return load_afsi(afsi, &obj);
 }
 
        return load_afsi(afsi, &obj);
 }
 
-/**
+/*
  * Get the audio file selector info, given the path of an audio table.
  *
  * \param path The full path of the audio file.
  * \param afsi Result pointer.
  *
  * Get the audio file selector info, given the path of an audio table.
  *
  * \param path The full path of the audio file.
  * \param afsi Result pointer.
  *
- * \return Positive on success, negative on errors.
+ * \return Standard.
  */
  */
-int get_afsi_of_path(const char *path, struct afs_info *afsi)
+static int get_afsi_of_path(const char *path, struct afs_info *afsi)
 {
        struct osl_object obj;
        int ret = get_afsi_object_of_path(path, &obj);
 {
        struct osl_object obj;
        int ret = get_afsi_object_of_path(path, &obj);