mp3splt-gtk 0.9.2
|
#include "utilities.h"
Go to the source code of this file.
Functions | |
void | append_point_to_pat (splt_point *point, points_and_tags *pat) |
void | append_tags_to_pat (splt_tags *tags, points_and_tags *pat) |
void | build_path (GString *path, const gchar *dir, const gchar *filename) |
gint | directory_exists (const gchar *directory) |
gboolean | double_equals (gdouble double_to_compare, gdouble compared_value) |
gint | file_exists (const gchar *fname) |
void | free_points_and_tags (points_and_tags **pat) |
points_and_tags * | new_points_and_tags () |
void | print_processing_file (gchar *filename, ui_state *ui) |
void | remove_end_slash_n_r_from_filename (char *filename) |
gchar * | transform_to_utf8 (gchar *text, gint free_or_not, gint *must_be_freed) |
miscellaneous utilities
Miscellaneous utilities like the check if a string may contain a valid file- or directory name.
Definition in file utilities.c.
void append_point_to_pat | ( | splt_point * | point, |
points_and_tags * | pat ) |
Definition at line 202 of file utilities.c.
void append_tags_to_pat | ( | splt_tags * | tags, |
points_and_tags * | pat ) |
Definition at line 207 of file utilities.c.
void build_path | ( | GString * | path, |
const gchar * | dir, | ||
const gchar * | filename ) |
Definition at line 156 of file utilities.c.
gint directory_exists | ( | const gchar * | directory | ) |
check if specified directory exists
Definition at line 44 of file utilities.c.
gboolean double_equals | ( | gdouble | double_to_compare, |
gdouble | compared_value ) |
Definition at line 176 of file utilities.c.
gint file_exists | ( | const gchar * | fname | ) |
check if specified file exists
Definition at line 62 of file utilities.c.
Referenced by add_playlist_file(), and disconnect_button_event().
void free_points_and_tags | ( | points_and_tags ** | pat | ) |
Definition at line 191 of file utilities.c.
points_and_tags * new_points_and_tags | ( | ) |
Definition at line 183 of file utilities.c.
void print_processing_file | ( | gchar * | filename, |
ui_state * | ui ) |
Issues the message "Processing file <filename>" into the message bar.
filename | The filename that has to be printed. |
Definition at line 82 of file utilities.c.
void remove_end_slash_n_r_from_filename | ( | char * | filename | ) |
Removes trailing \r or \n characters from a filename.
Definition at line 97 of file utilities.c.
gchar * transform_to_utf8 | ( | gchar * | text, |
gint | free_or_not, | ||
gint * | must_be_freed ) |
transform text to utf8
text | The text thet has to be converted |
free_or_not | TRUE if this function has to g_free() the text if during conversion it has to copy the text to a new (e.G. larger) buffer. |
must_be_freed | reads true, if this function has allocated a new chunk of memory to have somewhere to put the output string in - which means that the memory the output string is in has to be freed after usage. |
Definition at line 131 of file utilities.c.
Referenced by update_splitpoints_from_mp3splt_state().