![]() |
![]() |
![]() |
LibRhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <rclib-util.h> gchar * rclib_util_detect_encoding_by_locale (); const gchar * rclib_util_get_cover_search_dir (); gchar * rclib_util_get_data_dir (const gchar *name
,const gchar *arg0
); gboolean rclib_util_is_supported_list (const gchar *file
); gboolean rclib_util_is_supported_media (const gchar *file
); gchar * rclib_util_search_cover (const gchar *uri
,const gchar *title
,const gchar *artist
,const gchar *album
); void rclib_util_set_cover_search_dir (const gchar *dir
);
gchar * rclib_util_detect_encoding_by_locale ();
Get the most possible encoding by current locale settings.
Returns : |
The encoding, NULL if the encoding cannot be detected. Free it after usage. |
const gchar * rclib_util_get_cover_search_dir ();
Get the directory for searching the album cover image files.
Returns : |
The directory path. |
gchar * rclib_util_get_data_dir (const gchar *name
,const gchar *arg0
);
Get the data directory of the program.
|
the program name |
|
the first argument from the main function (argv[0]) |
Returns : |
The data directory path. |
gboolean rclib_util_is_supported_list (const gchar *file
);
Check whether the given playlist file is supported by the player.
|
the filename to check |
Returns : |
Whether the file is supported. |
gboolean rclib_util_is_supported_media (const gchar *file
);
Check whether the given media file is supported by the player.
|
the filename to check |
Returns : |
Whether the file is supported. |
gchar * rclib_util_search_cover (const gchar *uri
,const gchar *title
,const gchar *artist
,const gchar *album
);
Search the album cover image file by given information.
|
the URI |
|
the title |
|
the artist |
|
the album |
Returns : |
The album cover image file path, NULL if not found. |
void rclib_util_set_cover_search_dir (const gchar *dir
);
Set the directory for searching the album cover image files.
|
the directory to set |