1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6
* Copyright (C) 2001, 2008 The Free Software Foundation, Inc.
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
28
#include <glib/gi18n.h>
30
#include "preferences.h"
31
#include "fr-process.h"
32
#include "fr-window.h"
53
void viewer_done (ViewerData *vdata);
54
void command_done (CommandData *cdata);
57
extern GList *WindowList;
58
extern GList *CommandList;
59
extern gint ForceDirectoryCreation;
60
extern GHashTable *ProgramsCache;
61
extern GPtrArray *Registered_Commands;
63
extern FrMimeTypeDescription mime_type_desc[];
64
extern FrExtensionType file_ext_type[];
65
extern int single_file_save_type[]; /* File types that can be saved when
66
* a single file is selected.
67
* Includes single file compressors
68
* such as gzip, compress, etc. */
69
extern int save_type[]; /* File types that can be saved. */
70
extern int open_type[]; /* File types that can be opened. */
71
extern int create_type[]; /* File types that can be created. */
73
GType get_command_type_from_mime_type (const char *mime_type,
74
FrCommandCaps requested_capabilities);
75
GType get_preferred_command_for_mime_type (const char *mime_type,
76
FrCommandCaps requested_capabilities);
77
void update_registered_commands_capabilities (void);
78
const char * get_mime_type_from_extension (const char *ext);
79
const char * get_archive_filename_extension (const char *uri);
80
int get_mime_type_index (const char *mime_type);
81
void sort_mime_types_by_extension (int *a);
82
void sort_mime_types_by_description (int *a);