From 5a63e05ac5239109f7bd492a71575ad1644d0c41 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 28 Sep 2013 20:42:31 +0200 Subject: [PATCH] aft: Make get_afsi_object_of_row() static. This function only used within aft.c. Also improve the documentation a bit and fix an overlong line. --- afs.h | 1 - aft.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/afs.h b/afs.h index a63968f1..f4620cfe 100644 --- a/afs.h +++ b/afs.h @@ -285,7 +285,6 @@ 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 get_afsi_object_of_row(const struct osl_row *row, struct osl_object *obj); 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 377740d1..ae2cbe2a 100644 --- a/aft.c +++ b/aft.c @@ -493,15 +493,16 @@ static int aft_get_row_of_hash(unsigned char *hash, struct osl_row **row) return osl(osl_get_row(audio_file_table, AFTCOL_HASH, &obj, row)); } -/** - * Get the osl object holding the audio file selector info of a row. +/* + * Get the audio file selector info object of a row. * * \param row Pointer to a row in the audio file table. * \param obj Result pointer. * * \return Standard. */ -int get_afsi_object_of_row(const struct osl_row *row, struct osl_object *obj) +static int get_afsi_object_of_row(const struct osl_row *row, + struct osl_object *obj) { return osl(osl_get_object(audio_file_table, row, AFTCOL_AFSI, obj)); } -- 2.39.2