1/*
2 * Copyright 2015 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16 *
17 * Author: Matthias Clasen <mclasen@redhat.com>
18 */
19
20#ifndef __GIO_TOOL_H__
21#define __GIO_TOOL_H__
22
23void print_error (const gchar *format,
24 ...) G_GNUC_PRINTF (1, 2);
25void print_file_error (GFile *file,
26 const gchar *message);
27void show_help (GOptionContext *context,
28 const char *message);
29
30const char *file_type_to_string (GFileType type);
31const char *attribute_type_to_string (GFileAttributeType type);
32GFileAttributeType attribute_type_from_string (const char *str);
33char *attribute_flags_to_string (GFileAttributeInfoFlags flags);
34
35gboolean file_is_dir (GFile *file);
36
37int handle_cat (int argc, char *argv[], gboolean do_help);
38int handle_copy (int argc, char *argv[], gboolean do_help);
39int handle_info (int argc, char *argv[], gboolean do_help);
40int handle_launch (int argc, char *argv[], gboolean do_help);
41int handle_list (int argc, char *argv[], gboolean do_help);
42int handle_mime (int argc, char *argv[], gboolean do_help);
43int handle_mkdir (int argc, char *argv[], gboolean do_help);
44int handle_monitor (int argc, char *argv[], gboolean do_help);
45int handle_mount (int argc, char *argv[], gboolean do_help);
46int handle_move (int argc, char *argv[], gboolean do_help);
47int handle_open (int argc, char *argv[], gboolean do_help);
48int handle_rename (int argc, char *argv[], gboolean do_help);
49int handle_remove (int argc, char *argv[], gboolean do_help);
50int handle_save (int argc, char *argv[], gboolean do_help);
51int handle_set (int argc, char *argv[], gboolean do_help);
52int handle_trash (int argc, char *argv[], gboolean do_help);
53int handle_tree (int argc, char *argv[], gboolean do_help);
54
55#endif /* __GIO_TOOL_H__ */
56

source code of gtk/subprojects/glib/gio/gio-tool.h