sync with 0.7.4cvs49
[claws.git] / src / utils.h
index e8ce4ce13db2c1f527b643a9d2200742fadde195..f9f93c769337a886273f918874314ef3f9bf711c 100644 (file)
@@ -276,6 +276,8 @@ gchar **strsplit_with_quote         (const gchar    *str,
                                         const gchar    *delim,
                                         gint            max_tokens);
 
+gchar *get_abbrev_newsgroup_name       (const gchar    *group);
+
 GList *uri_list_extract_filenames      (const gchar    *uri_list);
 void decode_uri                                (gchar          *decoded_uri,
                                         const gchar    *encoded_uri);
@@ -288,6 +290,7 @@ gchar *get_imap_cache_dir   (void);
 gchar *get_mbox_cache_dir      (void);
 gchar *get_mime_tmp_dir                (void);
 gchar *get_template_dir                (void);
+gchar *get_header_cache_dir     (void);
 gchar *get_tmp_file            (void);
 gchar *get_domain_name         (void);
 
@@ -295,9 +298,15 @@ gchar *get_domain_name             (void);
 off_t get_file_size            (const gchar    *file);
 off_t get_file_size_as_crlf    (const gchar    *file);
 off_t get_left_file_size       (FILE           *fp);
+
 gboolean file_exist            (const gchar    *file,
                                 gboolean        allow_fifo);
 gboolean is_dir_exist          (const gchar    *dir);
+gboolean is_file_entry_exist   (const gchar    *file);
+
+#define is_file_exist(file)            file_exist(file, FALSE)
+#define is_file_or_fifo_exist(file)    file_exist(file, TRUE)
+
 gint change_dir                        (const gchar    *dir);
 gint make_dir_hier             (const gchar    *dir);
 gint remove_all_files          (const gchar    *dir);
@@ -313,11 +322,7 @@ gint move_file                     (const gchar    *src,
 gint change_file_mode_rw       (FILE           *fp,
                                 const gchar    *file);
 FILE *my_tmpfile               (void);
-gchar *write_buffer_to_file    (const gchar    *buf,
-                                guint           bufsize);
-
-#define is_file_exist(file)            file_exist(file, FALSE)
-#define is_file_or_fifo_exist(file)    file_exist(file, TRUE)
+FILE *str_open_as_stream       (const gchar    *str);
 
 /* process execution */
 gint execute_async             (gchar *const    argv[]);