/usr/include/libgoffice-0.8/goffice/utils/go-file.h is in libgoffice-0.8-dev 0.8.17-8.
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 | /*
* go-file.h :
*
* Copyright (C) 2004 Morten Welinder (terra@gnome.org)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* 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 St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef GO_FILE_H
#define GO_FILE_H
#include <goffice/goffice.h>
#include <gsf/gsf.h>
#include <time.h>
G_BEGIN_DECLS
typedef struct _GOFilePermissions GOFilePermissions;
struct _GOFilePermissions {
gboolean owner_read;
gboolean owner_write;
gboolean owner_execute;
gboolean group_read;
gboolean group_write;
gboolean group_execute;
gboolean others_read;
gboolean others_write;
gboolean others_execute;
};
typedef enum {
GO_DOTDOT_SYNTACTIC, /* Assume no symlinks. */
GO_DOTDOT_TEST, /* Check. */
GO_DOTDOT_LEAVE /* Leave alone. */
} GODotDot;
#ifndef R_OK
# define F_OK 0
# define X_OK 1
# define W_OK 2
# define R_OK 4
#endif
char *go_filename_simplify (const char *filename, GODotDot dotdot, gboolean make_absolute);
char *go_url_simplify (const char *uri);
char *go_filename_from_uri (const char *uri);
char *go_filename_to_uri (const char *filename);
char *go_url_resolve_relative (const char *ref_uri, const char *rel_uri);
char *go_url_make_relative (const char *uri, const char *ref_uri);
char *go_shell_arg_to_uri (const char *arg);
char *go_basename_from_uri (const char *uri);
char *go_dirname_from_uri (const char *uri, gboolean brief);
gchar const **go_shell_argv_to_glib_encoding (gint argc, gchar const **argv);
void go_shell_argv_to_glib_encoding_free (void);
GsfInput *go_file_open (char const *uri, GError **err);
GsfOutput *go_file_create (char const *uri, GError **err);
GSList *go_file_split_urls (char const *data);
gchar *go_file_get_owner_name (char const *uri);
gchar *go_file_get_group_name (char const *uri);
GOFilePermissions *go_get_file_permissions (char const *uri);
void go_set_file_permissions (char const *uri, GOFilePermissions * file_permissions);
time_t go_file_get_date_accessed (char const *uri);
time_t go_file_get_date_modified (char const *uri);
time_t go_file_get_date_changed (char const *uri);
gint go_file_access (char const *uri, gint mode);
gchar *go_url_decode (gchar const *text);
gchar *go_url_encode (gchar const *text, int type);
GError *go_url_show (gchar const *url);
gboolean go_url_check_extension (gchar const *uri,
gchar const *std_ext,
gchar **new_uri);
gchar *go_get_mime_type (gchar const *uri);
gchar *go_get_mime_type_for_data (gconstpointer data, int data_size);
gchar *go_mime_type_get_description (gchar const *mime_type);
G_END_DECLS
#endif /* GO_FILE_H */
|