2 * arch-tag: Header for various Rhythmbox utility functions for URIs and files
4 * Copyright (C) 2002 Jorn Baayen
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __RB_FILE_HELPERS_H
23 #define __RB_FILE_HELPERS_H
26 #include <libgnomevfs/gnome-vfs.h>
30 const char * rb_file (const char *filename
);
31 const char * rb_dot_dir (void);
33 char * rb_canonicalise_uri (const char *uri
);
35 GnomeVFSResult
rb_uri_mkstemp (const char *prefix
, char **uri
,
36 GnomeVFSHandle
**handle
);
38 char * rb_uri_resolve_symlink (const char *uri
);
39 gboolean
rb_uri_is_directory (const char *uri
);
40 gboolean
rb_uri_exists (const char *uri
);
41 char * rb_uri_resolve_relative (const char *uri
);
42 gboolean
rb_uri_is_readable (const char *uri
);
43 gboolean
rb_uri_is_writable (const char *uri
);
44 gboolean
rb_uri_is_local (const char *uri
);
45 char * rb_uri_get_dir_name (const char *uri
);
47 void rb_uri_handle_recursively(const char *uri
,
52 char* rb_uri_append_path (const char *uri
,
54 char* rb_uri_append_uri (const char *uri
,
55 const char *fragment
);
57 void rb_file_helpers_init (void);
58 void rb_file_helpers_shutdown(void);
62 #endif /* __RB_FILE_HELPERS_H */