static gchar *tmp_dir = NULL;
-/**
+/*
* ev_dir_ensure_exists:
* @dir: the directory name
* @mode: permissions to use when creating the directory
*
* 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;
* 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)
{
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;
EV_COMPRESSION_GZIP
} EvCompressionType;
-const char *_ev_tmp_dir (GError **error);
-
void _ev_file_helpers_init (void);
void _ev_file_helpers_shutdown (void);
-gboolean ev_dir_ensure_exists (const gchar *dir,
- int mode,
- GError **error);
-
int ev_mkstemp (const char *template,
char **file_name,
GError **error);