comment out menu entry not existing in claws
[claws.git] / src / utils.h
index c895fc76da270d05ec97b604dffd8ec55871ae52..e8b52ae6cca0f00526d14a42f307f8c7ff47dfb0 100644 (file)
        perror(func); \
 }
 
+#define debug_print(format, data...) debug_print_real(__FILE__, __LINE__, format , ##data)
+
 /* for macro expansion */
 #define Str(x) #x
 #define Xstr(x)        Str(x)
@@ -125,6 +127,7 @@ void list_free_strings              (GList          *list);
 void slist_free_strings                (GSList         *list);
 
 void hash_free_strings         (GHashTable     *table);
+void hash_free_value_mem       (GHashTable     *table);
 
 void ptr_array_free_strings    (GPtrArray      *array);
 
@@ -138,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);
@@ -279,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);
@@ -292,10 +299,13 @@ void get_rfc822_date              (gchar          *buf,
                                 gint            len);
 
 /* logging */
-void debug_print(const gchar *format, ...) G_GNUC_PRINTF(1, 2);
-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);
-void log_error (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
+void set_log_file      (const gchar *filename);
+void close_log_file    (void);
+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);
+void log_error         (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
 
 #endif /* __UTILS_H__ */