Rename all KotoIndexed* to Koto*, KOTO_INDEXED_ to KOTO_, etc. Fixes #9.
This commit is contained in:
parent
62de9c2032
commit
9f0e8dfbc8
28 changed files with 490 additions and 490 deletions
|
@ -25,47 +25,47 @@ G_BEGIN_DECLS
|
|||
* Type Definition
|
||||
**/
|
||||
|
||||
#define KOTO_TYPE_INDEXED_LIBRARY koto_indexed_library_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoIndexedLibrary, koto_indexed_library, KOTO, INDEXED_LIBRARY, GObject);
|
||||
#define KOTO_IS_INDEXED_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_INDEXED_LIBRARY))
|
||||
#define KOTO_TYPE_LIBRARY koto_library_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoLibrary, koto_library, KOTO, LIBRARY, GObject);
|
||||
#define KOTO_IS_LIBRARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_LIBRARY))
|
||||
|
||||
#define KOTO_TYPE_INDEXED_ARTIST koto_indexed_artist_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoIndexedArtist, koto_indexed_artist, KOTO, INDEXED_ARTIST, GObject);
|
||||
#define KOTO_IS_INDEXED_ARTIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_INDEXED_ARTIST))
|
||||
#define KOTO_TYPE_ARTIST koto_artist_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoArtist, koto_artist, KOTO, ARTIST, GObject);
|
||||
#define KOTO_IS_ARTIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_ARTIST))
|
||||
|
||||
#define KOTO_TYPE_INDEXED_ALBUM koto_indexed_album_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoIndexedAlbum, koto_indexed_album, KOTO, INDEXED_ALBUM, GObject);
|
||||
#define KOTO_IS_INDEXED_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_INDEXED_ALBUM))
|
||||
#define KOTO_TYPE_ALBUM koto_album_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoAlbum, koto_album, KOTO, ALBUM, GObject);
|
||||
#define KOTO_IS_ALBUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_ALBUM))
|
||||
|
||||
#define KOTO_TYPE_INDEXED_TRACK koto_indexed_track_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoIndexedTrack, koto_indexed_track, KOTO, INDEXED_TRACK, GObject);
|
||||
#define KOTO_IS_INDEXED_TRACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_INDEXED_TRACK))
|
||||
#define KOTO_TYPE_TRACK koto_track_get_type()
|
||||
G_DECLARE_FINAL_TYPE(KotoTrack, koto_track, KOTO, TRACK, GObject);
|
||||
#define KOTO_IS_TRACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), KOTO_TYPE_TRACK))
|
||||
|
||||
/**
|
||||
* Library Functions
|
||||
**/
|
||||
|
||||
KotoIndexedLibrary * koto_indexed_library_new(const gchar * path);
|
||||
KotoLibrary * koto_library_new(const gchar * path);
|
||||
|
||||
void koto_indexed_library_add_artist(
|
||||
KotoIndexedLibrary * self,
|
||||
KotoIndexedArtist * artist
|
||||
void koto_library_add_artist(
|
||||
KotoLibrary * self,
|
||||
KotoArtist * artist
|
||||
);
|
||||
|
||||
KotoIndexedArtist * koto_indexed_library_get_artist(
|
||||
KotoIndexedLibrary * self,
|
||||
KotoArtist * koto_library_get_artist(
|
||||
KotoLibrary * self,
|
||||
gchar* artist_name
|
||||
);
|
||||
|
||||
GHashTable * koto_indexed_library_get_artists(KotoIndexedLibrary * self);
|
||||
GHashTable * koto_library_get_artists(KotoLibrary * self);
|
||||
|
||||
void koto_indexed_library_remove_artist(
|
||||
KotoIndexedLibrary * self,
|
||||
KotoIndexedArtist * artist
|
||||
void koto_library_remove_artist(
|
||||
KotoLibrary * self,
|
||||
KotoArtist * artist
|
||||
);
|
||||
|
||||
void koto_indexed_library_set_path(
|
||||
KotoIndexedLibrary * self,
|
||||
void koto_library_set_path(
|
||||
KotoLibrary * self,
|
||||
gchar * path
|
||||
);
|
||||
|
||||
|
@ -104,12 +104,12 @@ int process_tracks(
|
|||
char ** column_names
|
||||
);
|
||||
|
||||
void read_from_db(KotoIndexedLibrary * self);
|
||||
void read_from_db(KotoLibrary * self);
|
||||
|
||||
void start_indexing(KotoIndexedLibrary * self);
|
||||
void start_indexing(KotoLibrary * self);
|
||||
|
||||
void index_folder(
|
||||
KotoIndexedLibrary * self,
|
||||
KotoLibrary * self,
|
||||
gchar * path,
|
||||
guint depth
|
||||
);
|
||||
|
@ -123,43 +123,43 @@ void output_track(
|
|||
* Artist Functions
|
||||
**/
|
||||
|
||||
KotoIndexedArtist * koto_indexed_artist_new(gchar * path);
|
||||
KotoArtist * koto_artist_new(gchar * path);
|
||||
|
||||
KotoIndexedArtist * koto_indexed_artist_new_with_uuid(const gchar * uuid);
|
||||
KotoArtist * koto_artist_new_with_uuid(const gchar * uuid);
|
||||
|
||||
void koto_indexed_artist_add_album(
|
||||
KotoIndexedArtist * self,
|
||||
void koto_artist_add_album(
|
||||
KotoArtist * self,
|
||||
gchar * album_uuid
|
||||
);
|
||||
|
||||
void koto_indexed_artist_commit(KotoIndexedArtist * self);
|
||||
void koto_artist_commit(KotoArtist * self);
|
||||
|
||||
guint koto_indexed_artist_find_album_with_name(
|
||||
guint koto_artist_find_album_with_name(
|
||||
gconstpointer * album_data,
|
||||
gconstpointer * album_name_data
|
||||
);
|
||||
|
||||
GList * koto_indexed_artist_get_albums(KotoIndexedArtist * self);
|
||||
GList * koto_artist_get_albums(KotoArtist * self);
|
||||
|
||||
gchar * koto_indexed_artist_get_name(KotoIndexedArtist * self);
|
||||
gchar * koto_artist_get_name(KotoArtist * self);
|
||||
|
||||
void koto_indexed_artist_remove_album(
|
||||
KotoIndexedArtist * self,
|
||||
KotoIndexedAlbum * album
|
||||
void koto_artist_remove_album(
|
||||
KotoArtist * self,
|
||||
KotoAlbum * album
|
||||
);
|
||||
|
||||
void koto_indexed_artist_remove_album_by_name(
|
||||
KotoIndexedArtist * self,
|
||||
void koto_artist_remove_album_by_name(
|
||||
KotoArtist * self,
|
||||
gchar * album_name
|
||||
);
|
||||
|
||||
void koto_indexed_artist_set_artist_name(
|
||||
KotoIndexedArtist * self,
|
||||
void koto_artist_set_artist_name(
|
||||
KotoArtist * self,
|
||||
gchar * artist_name
|
||||
);
|
||||
|
||||
void koto_indexed_artist_update_path(
|
||||
KotoIndexedArtist * self,
|
||||
void koto_artist_update_path(
|
||||
KotoArtist * self,
|
||||
gchar * new_path
|
||||
);
|
||||
|
||||
|
@ -173,67 +173,67 @@ void output_artists(
|
|||
* Album Functions
|
||||
**/
|
||||
|
||||
KotoIndexedAlbum * koto_indexed_album_new(
|
||||
KotoIndexedArtist * artist,
|
||||
KotoAlbum * koto_album_new(
|
||||
KotoArtist * artist,
|
||||
const gchar * path
|
||||
);
|
||||
|
||||
KotoIndexedAlbum * koto_indexed_album_new_with_uuid(
|
||||
KotoIndexedArtist * artist,
|
||||
KotoAlbum * koto_album_new_with_uuid(
|
||||
KotoArtist * artist,
|
||||
const gchar * uuid
|
||||
);
|
||||
|
||||
void koto_indexed_album_add_track(
|
||||
KotoIndexedAlbum * self,
|
||||
KotoIndexedTrack * track
|
||||
void koto_album_add_track(
|
||||
KotoAlbum * self,
|
||||
KotoTrack * track
|
||||
);
|
||||
|
||||
void koto_indexed_album_commit(KotoIndexedAlbum * self);
|
||||
void koto_album_commit(KotoAlbum * self);
|
||||
|
||||
void koto_indexed_album_find_album_art(KotoIndexedAlbum * self);
|
||||
void koto_album_find_album_art(KotoAlbum * self);
|
||||
|
||||
void koto_indexed_album_find_tracks(
|
||||
KotoIndexedAlbum * self,
|
||||
void koto_album_find_tracks(
|
||||
KotoAlbum * self,
|
||||
magic_t magic_cookie,
|
||||
const gchar * path
|
||||
);
|
||||
|
||||
gchar * koto_indexed_album_get_album_art(KotoIndexedAlbum * self);
|
||||
gchar * koto_album_get_album_art(KotoAlbum * self);
|
||||
|
||||
gchar * koto_indexed_album_get_album_name(KotoIndexedAlbum * self);
|
||||
gchar * koto_album_get_album_name(KotoAlbum * self);
|
||||
|
||||
gchar * koto_indexed_album_get_album_uuid(KotoIndexedAlbum * self);
|
||||
gchar * koto_album_get_album_uuid(KotoAlbum * self);
|
||||
|
||||
GList * koto_indexed_album_get_tracks(KotoIndexedAlbum * self);
|
||||
GList * koto_album_get_tracks(KotoAlbum * self);
|
||||
|
||||
void koto_indexed_album_remove_file(
|
||||
KotoIndexedAlbum * self,
|
||||
KotoIndexedTrack * track
|
||||
void koto_album_remove_file(
|
||||
KotoAlbum * self,
|
||||
KotoTrack * track
|
||||
);
|
||||
|
||||
void koto_indexed_album_set_album_art(
|
||||
KotoIndexedAlbum * self,
|
||||
void koto_album_set_album_art(
|
||||
KotoAlbum * self,
|
||||
const gchar * album_art
|
||||
);
|
||||
|
||||
void koto_indexed_album_set_album_name(
|
||||
KotoIndexedAlbum * self,
|
||||
void koto_album_set_album_name(
|
||||
KotoAlbum * self,
|
||||
const gchar * album_name
|
||||
);
|
||||
|
||||
void koto_indexed_album_set_artist_uuid(
|
||||
KotoIndexedAlbum * self,
|
||||
void koto_album_set_artist_uuid(
|
||||
KotoAlbum * self,
|
||||
const gchar * artist_uuid
|
||||
);
|
||||
|
||||
void koto_indexed_album_set_as_current_playlist(KotoIndexedAlbum * self);
|
||||
void koto_album_set_as_current_playlist(KotoAlbum * self);
|
||||
|
||||
void koto_indexed_album_update_path(
|
||||
KotoIndexedAlbum * self,
|
||||
void koto_album_update_path(
|
||||
KotoAlbum * self,
|
||||
gchar * path
|
||||
);
|
||||
|
||||
gint koto_indexed_album_sort_tracks(
|
||||
gint koto_album_sort_tracks(
|
||||
gconstpointer track1_uuid,
|
||||
gconstpointer track2_uuid,
|
||||
gpointer user_data
|
||||
|
@ -243,57 +243,57 @@ gint koto_indexed_album_sort_tracks(
|
|||
* File / Track Functions
|
||||
**/
|
||||
|
||||
KotoIndexedTrack * koto_indexed_track_new(
|
||||
KotoIndexedAlbum * album,
|
||||
KotoTrack * koto_track_new(
|
||||
KotoAlbum * album,
|
||||
const gchar * path,
|
||||
guint * cd
|
||||
);
|
||||
|
||||
KotoIndexedTrack * koto_indexed_track_new_with_uuid(const gchar * uuid);
|
||||
KotoTrack * koto_track_new_with_uuid(const gchar * uuid);
|
||||
|
||||
void koto_indexed_track_commit(KotoIndexedTrack * self);
|
||||
void koto_track_commit(KotoTrack * self);
|
||||
|
||||
GVariant * koto_indexed_track_get_metadata_vardict(KotoIndexedTrack * self);
|
||||
GVariant * koto_track_get_metadata_vardict(KotoTrack * self);
|
||||
|
||||
gchar * koto_indexed_track_get_uuid(KotoIndexedTrack * self);
|
||||
gchar * koto_track_get_uuid(KotoTrack * self);
|
||||
|
||||
void koto_indexed_track_parse_name(KotoIndexedTrack * self);
|
||||
void koto_track_parse_name(KotoTrack * self);
|
||||
|
||||
void koto_indexed_track_remove_from_playlist(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_remove_from_playlist(
|
||||
KotoTrack * self,
|
||||
gchar * playlist_uuid
|
||||
);
|
||||
|
||||
void koto_indexed_track_save_to_playlist(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_save_to_playlist(
|
||||
KotoTrack * self,
|
||||
gchar * playlist_uuid,
|
||||
gint current
|
||||
);
|
||||
|
||||
void koto_indexed_track_set_file_name(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_set_file_name(
|
||||
KotoTrack * self,
|
||||
gchar * new_file_name
|
||||
);
|
||||
|
||||
void koto_indexed_track_set_cd(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_set_cd(
|
||||
KotoTrack * self,
|
||||
guint cd
|
||||
);
|
||||
|
||||
void koto_indexed_track_set_parsed_name(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_set_parsed_name(
|
||||
KotoTrack * self,
|
||||
gchar * new_parsed_name
|
||||
);
|
||||
|
||||
void koto_indexed_track_set_position(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_set_position(
|
||||
KotoTrack * self,
|
||||
guint pos
|
||||
);
|
||||
|
||||
void koto_indexed_track_update_metadata(KotoIndexedTrack * self);
|
||||
void koto_track_update_metadata(KotoTrack * self);
|
||||
|
||||
void koto_indexed_track_update_path(
|
||||
KotoIndexedTrack * self,
|
||||
void koto_track_update_path(
|
||||
KotoTrack * self,
|
||||
const gchar * new_path
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue