ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / libgnomevfs / gnome-vfs-find-directory.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
3 /* gnome-vfs-find-directory.h - Special directory location functions for
4    the GNOME Virtual File System.
5
6    Copyright (C) 2000 Eazel, Inc.
7    Copyright (C) 2001 Free Software Foundation
8
9    The Gnome Library is free software; you can redistribute it and/or
10    modify it under the terms of the GNU Library General Public License as
11    published by the Free Software Foundation; either version 2 of the
12    License, or (at your option) any later version.
13
14    The Gnome Library is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17    Library General Public License for more details.
18
19    You should have received a copy of the GNU Library General Public
20    License along with the Gnome Library; see the file COPYING.LIB.  If not,
21    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22    Boston, MA 02111-1307, USA.
23
24    Authors: Pavel Cisler <pavel@eazel.com>
25             Seth Nickell <snickell@stanford.edu>
26 */
27
28 #ifndef GNOME_VFS_FIND_DIRECTORY_H
29 #define GNOME_VFS_FIND_DIRECTORY_H
30
31 #include <libgnomevfs/gnome-vfs-result.h>
32 #include <libgnomevfs/gnome-vfs-uri.h>
33
34 G_BEGIN_DECLS
35
36 typedef enum {
37         GNOME_VFS_DIRECTORY_KIND_DESKTOP = 1000,
38         GNOME_VFS_DIRECTORY_KIND_TRASH = 1001
39 } GnomeVFSFindDirectoryKind;
40
41 GnomeVFSResult gnome_vfs_find_directory (GnomeVFSURI                *near_uri,
42                                          GnomeVFSFindDirectoryKind   kind,
43                                          GnomeVFSURI               **result,
44                                          gboolean                    create_if_needed,
45                                          gboolean                    find_if_needed,
46                                          guint                       permissions);
47
48 G_END_DECLS
49
50 #endif