From 9c2c964727e4a484acf7f97267a3cf1c8fbacd89 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 11 Apr 2009 15:43:15 +0200 Subject: Print statistics in verbose mode --- src/gallery-utils.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/gallery-utils.h') diff --git a/src/gallery-utils.h b/src/gallery-utils.h index 123879b..d9c1d8a 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -15,6 +15,11 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifdef __cplusplus + extern "C" { +#endif + #include #include @@ -22,7 +27,6 @@ #define IS_EQUAL_SIGN(ch) ((ch) == '=') #define GET_EXT(s) strrchr (s, '.') - /* * str_replace: replace substring 'search' with a 'replace' string * - multiple occurences of the string are replaced @@ -63,3 +67,13 @@ int count_dir_levels (const char *path); * extract_file_ext: returns pointer to filename extension */ const char *extract_file_ext (const char *filename); + +/* + * log_error: prints an error and increments stats + */ +void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2); + + +#ifdef __cplusplus + } +#endif -- cgit v1.2.3