2008-12-15 15:56:41 +00:00
|
|
|
|
|
|
|
/* 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,
|
2014-01-23 11:51:32 +00:00
|
|
|
see <http://www.gnu.org/licenses/>.
|
2008-12-15 15:56:41 +00:00
|
|
|
|
|
|
|
Authors: Darin Adler <darin@eazel.com>
|
|
|
|
Pavel Cisler <pavel@eazel.com>
|
|
|
|
Mike Fleming <mfleming@eazel.com>
|
|
|
|
John Sullivan <sullivan@eazel.com>
|
|
|
|
*/
|
|
|
|
|
2018-03-15 19:17:27 +00:00
|
|
|
#pragma once
|
2008-12-15 15:56:41 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define EEL_TRASH_URI "trash:"
|
|
|
|
#define EEL_SEARCH_URI "x-nautilus-search:"
|
|
|
|
|
2018-02-13 16:41:58 +00:00
|
|
|
gboolean eel_uri_is_starred (const char *uri);
|
2008-12-15 15:56:41 +00:00
|
|
|
gboolean eel_uri_is_trash (const char *uri);
|
2020-02-09 15:27:22 +00:00
|
|
|
gboolean eel_uri_is_trash_root (const char *uri);
|
2008-12-15 15:56:41 +00:00
|
|
|
gboolean eel_uri_is_search (const char *uri);
|
2016-09-21 03:01:42 +00:00
|
|
|
gboolean eel_uri_is_other_locations (const char *uri);
|
2012-07-13 23:55:58 +00:00
|
|
|
gboolean eel_uri_is_recent (const char *uri);
|
2018-02-08 19:54:44 +00:00
|
|
|
gboolean eel_uri_is_in_xdg_dirs (const char *uri);
|
2008-12-15 15:56:41 +00:00
|
|
|
|
|
|
|
char * eel_filename_strip_extension (const char *filename);
|
|
|
|
void eel_filename_get_rename_region (const char *filename,
|
|
|
|
int *start_offset,
|
|
|
|
int *end_offset);
|
2011-03-21 19:03:43 +00:00
|
|
|
char * eel_filename_get_extension_offset (const char *filename);
|
2008-12-15 15:56:41 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|