Include a Other Software section in Help file
[geeqie.git] / src / ui_fileops.h
index 12b9a61..84c5068 100644 (file)
@@ -1,20 +1,28 @@
 /*
- * (SLIK) SimpLIstic sKin functions
- * (C) 2004 John Ellis
- * Copyright (C) 2008 - 2012 The Geeqie Team
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
  *
  * Author: John Ellis
  *
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
 #ifndef UI_FILEOPS_H
 #define UI_FILEOPS_H
 
-
+#include "config.h"
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
 
 
 
-void print_term(const gchar *text_utf8);
+void print_term(gboolean err, const gchar *text_utf8);
 
-#define printf_term(...) \
+#define printf_term(err, ...) \
        do { \
                gchar *msg = g_strdup_printf(__VA_ARGS__); \
-               print_term(msg); \
+               print_term(err, msg); \
                g_free(msg); \
        } while (0)
 
@@ -48,6 +56,7 @@ const gchar *homedir(void);
 const gchar *get_rc_dir(void);
 const gchar *get_collections_dir(void);
 const gchar *get_trash_dir(void);
+const gchar *get_window_layouts_dir(void);
 
 gboolean stat_utf8(const gchar *s, struct stat *st);
 gboolean lstat_utf8(const gchar *s, struct stat *st);
@@ -71,7 +80,9 @@ gboolean move_file(const gchar *s, const gchar *t);
 gboolean rename_file(const gchar *s, const gchar *t);
 gchar *get_current_dir(void);
 
-/* return True on success, it is up to you to free
+/**
+ * @headerfile string_list_free
+ * return True on success, it is up to you to free
  * the lists with string_list_free()
  */
 void string_list_free(GList *list);
@@ -83,12 +94,14 @@ gchar *unique_filename_simple(const gchar *path);
 const gchar *filename_from_path(const gchar *path);
 gchar *remove_level_from_path(const gchar *path);
 
-const gchar *extension_from_path(const gchar *path);
 gchar *remove_extension_from_path(const gchar *path);
 
 gboolean file_extension_match(const gchar *path, const gchar *ext);
 
-/* warning note: this modifies path string! */
+/**
+ * @headerfile parse_out_relatives
+ * warning note: this modifies path string!
+ */
 void parse_out_relatives(gchar *path);
 
 gboolean file_in_path(const gchar *name);
@@ -96,11 +109,14 @@ gboolean file_in_path(const gchar *name);
 gboolean recursive_mkdir_if_not_exists(const gchar *path, mode_t mode);
 
 
-/* generate md5 string from file,
+/**
+ * @headerfile md5_text_from_file_utf8
+ * generate md5 string from file,
  * on failure returns newly allocated copy of error_text, error_text may be NULL
 */
+ */
 gchar *md5_text_from_file_utf8(const gchar *path, const gchar *error_text);
 gboolean md5_get_digest_from_file_utf8(const gchar *path, guchar digest[16]);
 
+gboolean download_web_file(const gchar *text, gboolean minimized, gpointer data);
 #endif
 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */