diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-05-10 14:21:20 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-05-10 14:21:20 +0200 |
| commit | 8a722d04938583dc3620de05fd52f0baecce9fbb (patch) | |
| tree | dfee5472e5a88c450b8cc4abc71cc2a68d635e67 /src/gallery-utils.h | |
| parent | 3bca7e95f2b4ef351b89495afcb6d6230b5f7cd0 (diff) | |
| download | cataract-8a722d04938583dc3620de05fd52f0baecce9fbb.tar.xz | |
Consolidate data types
Diffstat (limited to 'src/gallery-utils.h')
| -rw-r--r-- | src/gallery-utils.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallery-utils.h b/src/gallery-utils.h index 85ad35d..b354a38 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -32,41 +32,41 @@ * - multiple occurences of the string are replaced * - reallocates the original string */ -void str_replace (char **dst, const char *search, const char *replace); +void str_replace (gchar **dst, const gchar *search, const gchar *replace); /* * copy_file: copy file from src to dst */ -gboolean copy_file (const char *src, const char *dst); +gboolean copy_file (const gchar *src, const gchar *dst); /* * make_string: make string of 'substr' substrings * - returns newly allocated string */ -char *make_string (const char *substr, int count); +gchar *make_string (const gchar *substr, int count); /* * fix_entities: replace all invalid & entities with & * - returns newly allocated string */ -void fix_entities (char **str); +void fix_entities (gchar **str); /* * remove_tags: remove all occurences of tags beginning with tag_begin and ending with tag_end * - e.g. remove_tags (&x, "<!--", "-->") will remove all comments * - returns newly allocated string */ -void remove_tags (char **str, const char *tag_begin, const char *tag_end); +void remove_tags (gchar **str, const gchar *tag_begin, const gchar *tag_end); /* * count_dir_levels: returns number of path elements */ -int count_dir_levels (const char *path); +int count_dir_levels (const gchar *path); /* * extract_file_ext: returns pointer to filename extension */ -const char *extract_file_ext (const char *filename); +const gchar *extract_file_ext (const gchar *filename); /* * log_error: prints an error and increments stats @@ -76,7 +76,7 @@ void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2); /* * needs_update: returns TRUE if the destionation file needs updating, also when missing */ -gboolean needs_update (const char *source, const char *dest); +gboolean needs_update (const gchar *source, const gchar *dest); #ifdef __cplusplus |
