X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=0c4c93280a3f409b7a791aa0b33c5e82369da732;hp=063e50681575573c0e6a45f1cdb4acb04c406fc5;hb=b93023b9a3257ca6c4a0bfa37f73bec0a2513699;hpb=fd98a9eb785bb0809269bfc623ba16c452fb0c1a diff --git a/aft.c b/aft.c index 063e5068..0c4c9328 100644 --- a/aft.c +++ b/aft.c @@ -374,6 +374,7 @@ static void save_afhi(struct afh_info *afhi, char *buf) sprintf(p, "%s", afhi->tags.comment); } +/* does not load the chunk table */ static void load_afhi(const char *buf, struct afh_info *afhi) { afhi->seconds_total = read_u32(buf + AFHI_SECONDS_TOTAL_OFFSET); @@ -590,6 +591,10 @@ static int get_hash_of_row(const struct osl_row *row, unsigned char **hash) * * \return The return value of the underlying call to osl_get_object(). * + * After the call the members of the afhi structure point to mapped memory + * which is owned by the osl table, Hence the caller must not attempt to free + * this memory by calling \ref clear_afhi(). + * * \sa get_chunk_table_of_row(). */ int get_afhi_of_row(const struct osl_row *row, struct afh_info *afhi)