replace LOG_MESSAGE with debug_print
[claws.git] / src / utils.h
index 9501547fc14a6aa4e00a943a76e906e95b70ee78..8a2e2c4290c337b5a969493e1e77926a29aed838 100644 (file)
        perror(func); \
 }
 
+#define debug_print(format, ...) debug_print_real(__FILE__, __LINE__, format , ##__VA_ARGS__)
+
 /* for macro expansion */
 #define Str(x) #x
 #define Xstr(x)        Str(x)
@@ -139,6 +141,8 @@ gchar *to_human_readable    (off_t        size);
 /* alternative string functions */
 gint strcmp2           (const gchar    *s1,
                         const gchar    *s2);
+gint strstr2           (const gchar    *s1,
+                        const gchar    *s2);
 gint path_cmp          (const gchar    *s1,
                         const gchar    *s2);
 gchar *strretchomp     (gchar          *str);
@@ -280,7 +284,9 @@ FILE *my_tmpfile            (void);
 
 /* process execution */
 gint execute_async             (gchar *const    argv[]);
-gint execute_command_line      (const gchar    *cmdline);
+gint execute_sync              (gchar *const    argv[]);
+gint execute_command_line      (const gchar    *cmdline,
+                                gboolean        async);
 
 /* open URI with external browser */
 gint open_uri(const gchar *uri, const gchar *cmdline);
@@ -295,7 +301,8 @@ void get_rfc822_date                (gchar          *buf,
 /* logging */
 void set_log_file      (const gchar *filename);
 void close_log_file    (void);
-void debug_print       (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
+void log_verbosity_set (gboolean verbose);
+void debug_print_real  (const gchar *file, const guint line, const gchar *format, ...) G_GNUC_PRINTF(3, 4);
 void log_print         (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
 void log_message       (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
 void log_warning       (const gchar *format, ...) G_GNUC_PRINTF(1, 2);