Add some more cases to the app-id unit tests
[glib.git] / gio / gio-tool.h
blob966500de0de61735234ed8ba6001c075247bf8d3
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 of the licence, 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_file_error (GFile *file,
24 const char *message);
25 void show_help (GOptionContext *context,
26 const char *message);
28 const char *file_type_to_string (GFileType type);
29 const char *attribute_type_to_string (GFileAttributeType type);
30 GFileAttributeType attribute_type_from_string (const char *str);
31 char *attribute_flags_to_string (GFileAttributeInfoFlags flags);
33 gboolean file_is_dir (GFile *file);
35 int handle_cat (int argc, char *argv[], gboolean do_help);
36 int handle_copy (int argc, char *argv[], gboolean do_help);
37 int handle_info (int argc, char *argv[], gboolean do_help);
38 int handle_list (int argc, char *argv[], gboolean do_help);
39 int handle_mime (int argc, char *argv[], gboolean do_help);
40 int handle_mkdir (int argc, char *argv[], gboolean do_help);
41 int handle_monitor (int argc, char *argv[], gboolean do_help);
42 int handle_mount (int argc, char *argv[], gboolean do_help);
43 int handle_move (int argc, char *argv[], gboolean do_help);
44 int handle_open (int argc, char *argv[], gboolean do_help);
45 int handle_rename (int argc, char *argv[], gboolean do_help);
46 int handle_remove (int argc, char *argv[], gboolean do_help);
47 int handle_save (int argc, char *argv[], gboolean do_help);
48 int handle_set (int argc, char *argv[], gboolean do_help);
49 int handle_trash (int argc, char *argv[], gboolean do_help);
50 int handle_tree (int argc, char *argv[], gboolean do_help);
52 #endif /* __GIO_TOOL_H__ */