diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-08 04:58:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-08 04:58:24 +0800 |
commit | 300101f4707c7c0a0e29d24527a93afe0f77a2c7 (patch) | |
tree | aac6a6bde47fb918f72abdac77d6e33f3759a6c4 /camel/camel-file-utils.h | |
parent | 393aafe6b21dfc482b41a08297292ff0e8b05037 (diff) | |
download | gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.gz gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.zst gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.zip |
Use camel_mkdir().
2003-07-07 Jeffrey Stedfast <fejj@ximian.com>
* providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): Use
camel_mkdir().
* providers/imap/camel-imap-folder.c (camel_imap_folder_new): Use
camel_mkdir().
* camel-session.c (get_storage_path): Use camel_mkdir().
* camel-store.c (camel_mkdir_hier): Removed.
* camel-data-cache.c (camel_data_cache_new): Updated to use
camel_mkdir().
(data_cache_path): Same.
* camel-file-utils.c (camel_mkdir): Renamed and documented.
(camel_file_util_safe_filename): Documented.
(camel_read): Moved here from camel-io.c
(camel_write): Same.
* camel-io.[c,h]: Removed.
* camel-uid-cache.c (camel_uid_cache_new): Use the
camel-file-utils.c version of mkdir.
svn path=/trunk/; revision=21753
Diffstat (limited to 'camel/camel-file-utils.h')
-rw-r--r-- | camel/camel-file-utils.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/camel/camel-file-utils.h b/camel/camel-file-utils.h index e261ead16b..f1c3079b67 100644 --- a/camel/camel-file-utils.h +++ b/camel/camel-file-utils.h @@ -3,9 +3,10 @@ /* * Authors: * Michael Zucchi <notzed@ximian.com> + * Jeffrey Stedfast <fejj@ximian.com> * Dan Winship <danw@ximian.com> * - * Copyright (C) 2000, 2001 Ximian, Inc. + * Copyright (C) 2000, 2003 Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -29,7 +30,7 @@ #ifdef __cplusplus extern "C" { #pragma } -#endif /* __cplusplus }*/ +#endif /* __cplusplus */ #include <glib.h> #include <stdio.h> @@ -47,8 +48,11 @@ int camel_file_util_decode_off_t (FILE *in, off_t *); int camel_file_util_encode_string (FILE *out, const char *); int camel_file_util_decode_string (FILE *in, char **); -int camel_file_util_mkdir(const char *path, mode_t mode); -char *camel_file_util_safe_filename(const char *name); +int camel_mkdir (const char *path, mode_t mode); +char *camel_file_util_safe_filename (const char *name); + +ssize_t camel_read (int fd, char *buf, size_t n); +ssize_t camel_write (int fd, const char *buf, size_t n); #ifdef __cplusplus } |