X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osl_core.h;h=599d22da6146c8cb88c5330a1a347c4b3b88c756;hp=16a6775be607ae36a344bea9162c075e9fe90054;hb=d4776878609698ca63c99c3db711ae3edf038bba;hpb=a3b43ea4ccc39b56ec4de003f83836b75905afe2 diff --git a/osl_core.h b/osl_core.h index 16a6775b..599d22da 100644 --- a/osl_core.h +++ b/osl_core.h @@ -67,8 +67,12 @@ struct osl_table { /** Internal representation of a row of an osl table */ struct osl_row { - /** The row number only present if there is at least one mapped column. */ - off_t id; + /** + * The row number. + * + * It is only used if there is at least one mapped column. + */ + off_t num; /** Array of size \a num_volatile_columns. */ struct osl_object *volatile_objects; }; @@ -76,9 +80,9 @@ struct osl_row { int read_table_desc(struct osl_object *map, struct osl_table_description *desc); int init_table_structure(const struct osl_table_description *desc, struct osl_table **table_ptr); -int row_is_invalid(struct osl_table *t, uint32_t id); +int row_is_invalid(struct osl_table *t, uint32_t row_num); int get_mapped_object(const struct osl_table *t, unsigned col_num, - uint32_t id, struct osl_object *obj); + uint32_t row_num, struct osl_object *obj); int para_truncate(const char *filename, off_t size); int unmap_table(struct osl_table *t, enum osl_close_flags flags); int init_rbtrees(struct osl_table *t);