X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afs.h;h=fb3a4f26015def92762069e39804561b4e05acfb;hb=0f664765324ab276cad2d1f1e14ae64c81def413;hp=b1606493a05f047afb1e8ecb0fdd0a5bbcbafcfe;hpb=d511199b1f1f91cc53e31637bb801e5c2425829e;p=paraslash.git diff --git a/afs.h b/afs.h index b1606493..fb3a4f26 100644 --- a/afs.h +++ b/afs.h @@ -234,12 +234,11 @@ int for_each_matching_row(struct pattern_match_data *pmd); /* score */ void score_init(struct afs_table *t); -int admissible_file_loop(void *data, osl_rbtree_loop_func *func); +int score_loop(osl_rbtree_loop_func *func, void *data); int score_get_best(struct osl_row **aft_row, long *score); int get_score_and_aft_row(struct osl_row *score_row, long *score, struct osl_row **aft_row); int score_add(const struct osl_row *row, long score); int score_update(const struct osl_row *aft_row, long new_score); -int get_num_admissible_files(unsigned *num); int score_delete(const struct osl_row *aft_row); int clear_score_table(void); int row_belongs_to_score_table(const struct osl_row *aft_row, unsigned *rank); @@ -278,7 +277,7 @@ int playlist_check_callback(struct afs_callback_arg *aca); void table_name ## _init(struct afs_table *t); \ int cmd_prefix ## _get_name_by_id(uint32_t id, char **name); \ int cmd_prefix ## _get_def_by_id(uint32_t id, struct osl_object *def); \ - int cmd_prefix ## _get_def_by_name(char *name, struct osl_object *def); \ + int cmd_prefix ## _get_def_by_name(const char *name, struct osl_object *def); \ int cmd_prefix ## _get_name_and_def_by_row(const struct osl_row *row, \ char **name, struct osl_object *def); \ int table_name ##_event_handler(enum afs_events event, \