docs: Small improvements to glib-mkenums man page
[glib.git] / gio / gio-tool.h
blob5064165a6433e55bb23ad5218f3d12f93b3663a3
1 /*
2 * Copyright 2015 Red Hat, Inc.
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.
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.
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/>.
17 * Author: Matthias Clasen <mclasen@redhat.com>
20 #ifndef __GIO_TOOL_H__
21 #define __GIO_TOOL_H__
23 void print_error (const gchar *format,
24 ...) G_GNUC_PRINTF (1, 2);
25 void print_file_error (GFile *file,
26 const gchar *message);
27 void show_help (GOptionContext *context,
28 const char *message);
30 const char *file_type_to_string (GFileType type);
31 const char *attribute_type_to_string (GFileAttributeType type);
32 GFileAttributeType attribute_type_from_string (const char *str);
33 char *attribute_flags_to_string (GFileAttributeInfoFlags flags);
35 gboolean file_is_dir (GFile *file);
37 int handle_cat (int argc, char *argv[], gboolean do_help);
38 int handle_copy (int argc, char *argv[], gboolean do_help);
39 int handle_info (int argc, char *argv[], gboolean do_help);
40 int handle_list (int argc, char *argv[], gboolean do_help);
41 int handle_mime (int argc, char *argv[], gboolean do_help);
42 int handle_mkdir (int argc, char *argv[], gboolean do_help);
43 int handle_monitor (int argc, char *argv[], gboolean do_help);
44 int handle_mount (int argc, char *argv[], gboolean do_help);
45 int handle_move (int argc, char *argv[], gboolean do_help);
46 int handle_open (int argc, char *argv[], gboolean do_help);
47 int handle_rename (int argc, char *argv[], gboolean do_help);
48 int handle_remove (int argc, char *argv[], gboolean do_help);
49 int handle_save (int argc, char *argv[], gboolean do_help);
50 int handle_set (int argc, char *argv[], gboolean do_help);
51 int handle_trash (int argc, char *argv[], gboolean do_help);
52 int handle_tree (int argc, char *argv[], gboolean do_help);
54 #endif /* __GIO_TOOL_H__ */