All access to the tmp dir should be through ev_mkstemp[_file]() and
ev_mkdtemp() now.
static gchar *tmp_dir = NULL;
static gchar *tmp_dir = NULL;
* ev_dir_ensure_exists:
* @dir: the directory name
* @mode: permissions to use when creating the directory
* 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
*/
*
* 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;
{
int errsv;
char *display_name;
* Returns: the tmp directory, or %NULL with @error filled in if the
* directory could not be created
*/
* Returns: the tmp directory, or %NULL with @error filled in if the
* directory could not be created
*/
_ev_tmp_dir (GError **error)
{
_ev_tmp_dir (GError **error)
{
- if (!ev_dir_ensure_exists (tmp_dir, 0700, error))
+ if (!_ev_dir_ensure_exists (tmp_dir, 0700, error))
return NULL;
return tmp_dir;
return NULL;
return tmp_dir;
EV_COMPRESSION_GZIP
} EvCompressionType;
EV_COMPRESSION_GZIP
} EvCompressionType;
-const char *_ev_tmp_dir (GError **error);
-
void _ev_file_helpers_init (void);
void _ev_file_helpers_shutdown (void);
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);
int ev_mkstemp (const char *template,
char **file_name,
GError **error);