Kodi Development  20.0
for Binary and Script based Add-Ons
filebrowser.h
1 /*
2  * Copyright (C) 2005-2020 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #ifndef C_API_GUI_DIALOGS_FILEBROWSER_H
10 #define C_API_GUI_DIALOGS_FILEBROWSER_H
11 
12 #include "../definitions.h"
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif /* __cplusplus */
18 
20  {
21  bool (*show_and_get_directory)(KODI_HANDLE kodiBase,
22  const char* shares,
23  const char* heading,
24  const char* path_in,
25  char** path_out,
26  bool writeOnly);
27  bool (*show_and_get_file)(KODI_HANDLE kodiBase,
28  const char* shares,
29  const char* mask,
30  const char* heading,
31  const char* path_in,
32  char** path_out,
33  bool use_thumbs,
34  bool use_file_directories);
35  bool (*show_and_get_file_from_dir)(KODI_HANDLE kodiBase,
36  const char* directory,
37  const char* mask,
38  const char* heading,
39  const char* path_in,
40  char** path_out,
41  bool use_thumbs,
42  bool use_file_directories,
43  bool singleList);
44  bool (*show_and_get_file_list)(KODI_HANDLE kodiBase,
45  const char* shares,
46  const char* mask,
47  const char* heading,
48  char*** file_list,
49  unsigned int* entries,
50  bool use_thumbs,
51  bool use_file_directories);
52  bool (*show_and_get_source)(KODI_HANDLE kodiBase,
53  const char* path_in,
54  char** path_out,
55  bool allow_network_shares,
56  const char* additional_share,
57  const char* type);
58  bool (*show_and_get_image)(KODI_HANDLE kodiBase,
59  const char* shares,
60  const char* heading,
61  const char* path_in,
62  char** path_out);
63  bool (*show_and_get_image_list)(KODI_HANDLE kodiBase,
64  const char* shares,
65  const char* heading,
66  char*** file_list,
67  unsigned int* entries);
68  void (*clear_file_list)(KODI_HANDLE kodiBase, char*** file_list, unsigned int entries);
70 
71 #ifdef __cplusplus
72 } /* extern "C" */
73 #endif /* __cplusplus */
74 
75 #endif /* !C_API_GUI_DIALOGS_FILEBROWSER_H */