/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-mime-deprecated.h is in libgnomevfs2-dev 1:2.24.4-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
Copyright (C) 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.
Author: Maciej Stachowiak <mjs@eazel.com> */
#ifndef GNOME_VFS_DISABLE_DEPRECATED
#ifndef GNOME_VFS_MIME_DEPRECATED_H
#define GNOME_VFS_MIME_DEPRECATED_H
G_BEGIN_DECLS
/* ------------------------------
* From gnome-vfs-mime-handlers.h
* ------------------------------
*/
/**
* GnomeVFSMimeActionType:
* @GNOME_VFS_MIME_ACTION_TYPE_NONE: neither an application nor a component.
* @GNOME_VFS_MIME_ACTION_TYPE_APPLICATION: an application.
* @GNOME_VFS_MIME_ACTION_TYPE_COMPONENT: a component.
*
* This is used to specify the %type of a #GnomeVFSMimeAction.
**/
typedef enum {
GNOME_VFS_MIME_ACTION_TYPE_NONE,
GNOME_VFS_MIME_ACTION_TYPE_APPLICATION,
GNOME_VFS_MIME_ACTION_TYPE_COMPONENT
} GnomeVFSMimeActionType;
/**
* GnomeVFSMimeAction:
* @action_type: The #GnomeVFSMimeActionType describing the type of this action.
*
* This data structure describes an action that can be done
* on a file.
**/
typedef struct _GnomeVFSMimeAction GnomeVFSMimeAction;
struct _GnomeVFSMimeAction {
/* <public >*/
GnomeVFSMimeActionType action_type;
union {
void *component;
void *dummy_component;
GnomeVFSMimeApplication *application;
} action;
/*< private >*/
/* Padded to avoid future breaks in ABI compatibility */
void *reserved1;
};
GnomeVFSMimeActionType gnome_vfs_mime_get_default_action_type (const char *mime_type);
GnomeVFSMimeAction * gnome_vfs_mime_get_default_action (const char *mime_type);
GnomeVFSMimeApplication *gnome_vfs_mime_application_new_from_id (const char *id);
void gnome_vfs_mime_action_free (GnomeVFSMimeAction *action);
GnomeVFSResult gnome_vfs_mime_action_launch (GnomeVFSMimeAction *action,
GList *uris);
GnomeVFSResult gnome_vfs_mime_action_launch_with_env (GnomeVFSMimeAction *action,
GList *uris,
char **envp);
const char *gnome_vfs_mime_get_icon (const char *mime_type);
/* List manipulation helper functions */
gboolean gnome_vfs_mime_id_in_application_list (const char *id,
GList *applications);
GList * gnome_vfs_mime_remove_application_from_list (GList *applications,
const char *application_id,
gboolean *did_remove);
GList * gnome_vfs_mime_id_list_from_application_list (GList *applications);
/* Stored as delta to current user level - API function computes delta and stores in prefs */
GnomeVFSResult gnome_vfs_mime_add_extension (const char *mime_type,
const char *extension);
GnomeVFSResult gnome_vfs_mime_remove_extension (const char *mime_type,
const char *extension);
GnomeVFSResult gnome_vfs_mime_set_default_action_type (const char *mime_type,
GnomeVFSMimeActionType action_type);
GnomeVFSResult gnome_vfs_mime_set_default_application (const char *mime_type,
const char *application_id);
GnomeVFSResult gnome_vfs_mime_set_default_component (const char *mime_type,
const char *component_iid);
GnomeVFSResult gnome_vfs_mime_set_icon (const char *mime_type,
const char *filename);
GnomeVFSResult gnome_vfs_mime_set_description (const char *mime_type,
const char *description);
GnomeVFSResult gnome_vfs_mime_set_can_be_executable (const char *mime_type,
gboolean new_value);
/* No way to override system list; can only add. */
GnomeVFSResult gnome_vfs_mime_extend_all_applications (const char *mime_type,
GList *application_ids);
/* Only "user" entries may be removed. */
GnomeVFSResult gnome_vfs_mime_remove_from_all_applications (const char *mime_type,
GList *application_ids);
GList * gnome_vfs_mime_get_short_list_applications (const char *mime_type);
GnomeVFSResult gnome_vfs_mime_set_short_list_applications (const char *mime_type,
GList *application_ids);
GnomeVFSResult gnome_vfs_mime_set_short_list_components (const char *mime_type,
GList *component_iids);
GnomeVFSResult gnome_vfs_mime_add_application_to_short_list (const char *mime_type,
const char *application_id);
GnomeVFSResult gnome_vfs_mime_remove_application_from_short_list (const char *mime_type,
const char *application_id);
GnomeVFSResult gnome_vfs_mime_add_component_to_short_list (const char *mime_type,
const char *iid);
GnomeVFSResult gnome_vfs_mime_remove_component_from_short_list (const char *mime_type,
const char *iid);
/* There are actually in bonobo-activation, but defined here */
#if defined(GNOME_VFS_INCLUDE_BONOBO) || defined(_Bonobo_ServerInfo_defined)
#include <bonobo-activation/bonobo-activation-server-info.h>
Bonobo_ServerInfo *gnome_vfs_mime_get_default_component (const char *mime_type);
#else
void *gnome_vfs_mime_get_default_component (const char *mime_type);
#endif
GList * gnome_vfs_mime_get_all_components (const char *mime_type);
void gnome_vfs_mime_component_list_free (GList *list);
GList * gnome_vfs_mime_remove_component_from_list (GList *components,
const char *iid,
gboolean *did_remove);
GList * gnome_vfs_mime_id_list_from_component_list (GList *components);
gboolean gnome_vfs_mime_id_in_component_list (const char *iid,
GList *components);
GList * gnome_vfs_mime_get_short_list_components (const char *mime_type);
G_END_DECLS
#endif /* GNOME_VFS_MIME_DEPRECATED_H */
#endif /* GNOME_VFS_DISABLE_DEPRECATED */
|