From fb4022dfafa1d6f86f741767ecaed8e41c53352a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 28 Sep 2013 21:08:41 +0200 Subject: [PATCH 1/1] aft: Make get_afsi_of_path() static. Also simplify the documentation of the return value. --- afs.h | 1 - aft.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/afs.h b/afs.h index 827b6aa6..8a6b927c 100644 --- 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 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); diff --git a/aft.c b/aft.c index af2c6889..f529416a 100644 --- 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); } -/** +/* * 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); -- 2.39.2