/usr/include/libfm-1.0/fm-file.h is in libfm-dev 1.2.0-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 | /*
* fm-file.h
*
* Copyright 2012 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef _FM_FILE_H_
#define _FM_FILE_H_ 1
#include "fm-module.h"
#include <glib.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define FM_TYPE_FILE (fm_file_get_type())
#define FM_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
FM_TYPE_FILE, FmFile))
#define FM_IS_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
FM_TYPE_FILE))
#define FM_FILE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj),\
FM_TYPE_FILE, FmFileInterface))
typedef struct _FmFile FmFile; /* Dummy typedef */
typedef struct _FmFileInterface FmFileInterface;
/**
* FmFileInterface:
* @wants_incremental: VTable func, see fm_file_wants_incremental()
*/
struct _FmFileInterface
{
/*< private >*/
GTypeInterface g_iface;
/*< public >*/
gboolean (*wants_incremental)(GFile* file);
/*< private >*/
gpointer _reserved1;
gpointer _reserved2;
};
typedef struct _FmFileInitTable FmFileInitTable;
/**
* FmFileInitTable:
* @new_for_uri: function to create new #GFile object from URI
*
* Functions to initialize FmFile instance.
*
* This structure is used for "vfs" module initialization. The key for
* module of this type is scheme name to support.
*/
struct _FmFileInitTable
{
/*< public >*/
GFile * (*new_for_uri)(const char *uri);
/*< private >*/
gpointer _reserved1;
gpointer _reserved2;
};
GType fm_file_get_type(void);
void fm_file_add_vfs(const char *name, FmFileInitTable *init);
/* VTable calls */
gboolean fm_file_wants_incremental(GFile* file);
/* Gfile functions replacements */
GFile *fm_file_new_for_uri(const char *uri);
GFile *fm_file_new_for_commandline_arg(const char *arg);
void _fm_file_init(void);
void _fm_file_finalize(void);
/* for modules */
#define FM_MODULE_vfs_VERSION 1
extern FmFileInitTable fm_module_init_vfs;
G_END_DECLS
#endif /* _FM_FILE_H_ */
|