]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-file-helpers.c
[libdocument] Remove ev_tmp_dir()
[evince.git] / libdocument / ev-file-helpers.c
index 4816db0e51edaca16ee4d0e6ef36c65ba69557b3..3845519f67c2cbcb7184e1e639cb1b3fa9dc5615 100644 (file)
@@ -33,7 +33,7 @@
 
 static gchar *tmp_dir = NULL;
 
-/**
+/*
  * ev_dir_ensure_exists:
  * @dir: the directory name
  * @mode: permissions to use when creating the directory
@@ -43,10 +43,10 @@ static gchar *tmp_dir = NULL;
  *
  * Returns: %TRUE on success, or %FALSE on error with @error filled in
  */
-gboolean
-ev_dir_ensure_exists (const gchar *dir,
-                      int          mode,
-                      GError     **error)
+static gboolean
+_ev_dir_ensure_exists (const gchar *dir,
+                       int          mode,
+                       GError     **error)
 {
         int errsv;
         char *display_name;
@@ -79,7 +79,7 @@ ev_dir_ensure_exists (const gchar *dir,
  * Returns: the tmp directory, or %NULL with @error filled in if the
  *   directory could not be created
  */
-const char *
+static const char *
 _ev_tmp_dir (GError **error)
 {
 
@@ -92,7 +92,7 @@ _ev_tmp_dir (GError **error)
                 g_free (dirname);
         }
 
-        if (!ev_dir_ensure_exists (tmp_dir, 0700, error))
+        if (!_ev_dir_ensure_exists (tmp_dir, 0700, error))
                 return NULL;
 
        return tmp_dir;