]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.h
Complete afs event handling.
[paraslash.git] / afs.h
diff --git a/afs.h b/afs.h
index 57cecebdf648920dcf14c981a3f437632ebdf654..db931d989133a53a82ae38c07bbe75aeb581e5a6 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -35,12 +35,9 @@ enum afs_events {
        AUDIO_FILE_RENAME,
        AUDIO_FILE_ADD,
        AUDIO_FILE_REMOVE,
        AUDIO_FILE_RENAME,
        AUDIO_FILE_ADD,
        AUDIO_FILE_REMOVE,
-       LYRICS_ADD,
-       LYRICS_REMOVE,
-       LYRICS_RENAME,
-       IMAGE_ADD,
-       IMAGE_REMOVE,
-       IMAGE_RENAME,
+       BLOB_ADD,
+       BLOB_RENAME,
+       BLOB_REMOVE,
 
 };
 
 
 };
 
@@ -60,19 +57,6 @@ struct afsi_change_event_data {
        struct afs_info *old_afsi;
 };
 
        struct afs_info *old_afsi;
 };
 
-union afs_event_data {
-       struct {
-               const char *name;
-               unsigned char bitnum;
-       } rmatt_event_data;
-       struct osl_row *row;
-       struct {
-               const struct osl_row *row;
-               struct afs_info *old_afsi;
-       } afsi_change;
-
-};
-
 struct afs_table {
        void (*init)(struct afs_table *t);
        const char *name;
 struct afs_table {
        void (*init)(struct afs_table *t);
        const char *name;
@@ -154,6 +138,7 @@ 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 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);
 
 /* attribute */
 int row_belongs_to_score_table(const struct osl_row *aft_row, unsigned *rank);
 
 /* attribute */