summaryrefslogtreecommitdiff
path: root/eel/eel-vfs-extensions.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-12-15 15:56:41 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-12-15 15:56:41 +0000
commit7e668edf204ea9a8c72565e7cabaced11be86caa (patch)
tree7baed8654034492f54d4de730a13ad2c4f8a7050 /eel/eel-vfs-extensions.h
parentd4b4c188e1a89a268af33ff0381eeca04e5528dc (diff)
downloadnautilus-7e668edf204ea9a8c72565e7cabaced11be86caa.tar.gz
eel/ Import eel into nautilus.
2008-12-15 Alexander Larsson <alexl@redhat.com> * Makefile.am: * acconfig.h: * configure.in: * eel/ * libnautilus-private/Makefile.am: Import eel into nautilus. svn path=/trunk/; revision=14815
Diffstat (limited to 'eel/eel-vfs-extensions.h')
-rw-r--r--eel/eel-vfs-extensions.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/eel/eel-vfs-extensions.h b/eel/eel-vfs-extensions.h
new file mode 100644
index 000000000..96d811817
--- /dev/null
+++ b/eel/eel-vfs-extensions.h
@@ -0,0 +1,57 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/* eel-vfs-extensions.h - gnome-vfs extensions. Its likely some of these will
+ be part of gnome-vfs in the future.
+
+ Copyright (C) 1999, 2000 Eazel, Inc.
+
+ The Gnome Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Authors: Darin Adler <darin@eazel.com>
+ Pavel Cisler <pavel@eazel.com>
+ Mike Fleming <mfleming@eazel.com>
+ John Sullivan <sullivan@eazel.com>
+*/
+
+#ifndef EEL_VFS_EXTENSIONS_H
+#define EEL_VFS_EXTENSIONS_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+#define EEL_TRASH_URI "trash:"
+#define EEL_DESKTOP_URI "x-nautilus-desktop:"
+#define EEL_SEARCH_URI "x-nautilus-search:"
+
+gboolean eel_uri_is_trash (const char *uri);
+gboolean eel_uri_is_trash_folder (const char *uri);
+gboolean eel_uri_is_in_trash (const char *uri);
+gboolean eel_uri_is_desktop (const char *uri);
+gboolean eel_uri_is_search (const char *uri);
+
+
+char * eel_format_uri_for_display (const char *uri);
+char * eel_make_valid_utf8 (const char *name);
+
+char * eel_filename_strip_extension (const char *filename);
+void eel_filename_get_rename_region (const char *filename,
+ int *start_offset,
+ int *end_offset);
+
+G_END_DECLS
+
+#endif /* EEL_VFS_EXTENSIONS_H */