make it possible to disable single-file includes by defining
[platform/upstream/glib.git] / glib / gfileutils.h
index 7c23cad..e6088e2 100644 (file)
  *   Boston, MA 02111-1307, USA.
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_FILEUTILS_H__
 #define __G_FILEUTILS_H__
 
@@ -101,11 +105,20 @@ gint    g_file_open_tmp      (const gchar  *tmpl,
                              gchar       **name_used,
                              GError      **error);
 
+char *g_format_size_for_display (goffset size);
+
 gchar *g_build_path     (const gchar *separator,
                         const gchar *first_element,
-                        ...) G_GNUC_NULL_TERMINATED;
+                        ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED;
+gchar *g_build_pathv    (const gchar  *separator,
+                        gchar       **args) G_GNUC_MALLOC;
+
 gchar *g_build_filename (const gchar *first_element,
-                        ...) G_GNUC_NULL_TERMINATED;
+                        ...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED;
+gchar *g_build_filenamev (gchar      **args) G_GNUC_MALLOC;
+
+int    g_mkdir_with_parents (const gchar *pathname,
+                            int          mode);
 
 G_END_DECLS