Kodi Development  19.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 #pragma once
10 
11 #ifndef C_API_GUI_DIALOGS_FILEBROWSER_H
12 #define C_API_GUI_DIALOGS_FILEBROWSER_H
13 
14 #include "../definitions.h"
15 
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif /* __cplusplus */
20 
22  {
23  bool (*show_and_get_directory)(KODI_HANDLE kodiBase,
24  const char* shares,
25  const char* heading,
26  const char* path_in,
27  char** path_out,
28  bool writeOnly);
29  bool (*show_and_get_file)(KODI_HANDLE kodiBase,
30  const char* shares,
31  const char* mask,
32  const char* heading,
33  const char* path_in,
34  char** path_out,
35  bool use_thumbs,
36  bool use_file_directories);
37  bool (*show_and_get_file_from_dir)(KODI_HANDLE kodiBase,
38  const char* directory,
39  const char* mask,
40  const char* heading,
41  const char* path_in,
42  char** path_out,
43  bool use_thumbs,
44  bool use_file_directories,
45  bool singleList);
46  bool (*show_and_get_file_list)(KODI_HANDLE kodiBase,
47  const char* shares,
48  const char* mask,
49  const char* heading,
50  char*** file_list,
51  unsigned int* entries,
52  bool use_thumbs,
53  bool use_file_directories);
54  bool (*show_and_get_source)(KODI_HANDLE kodiBase,
55  const char* path_in,
56  char** path_out,
57  bool allow_network_shares,
58  const char* additional_share,
59  const char* type);
60  bool (*show_and_get_image)(KODI_HANDLE kodiBase,
61  const char* shares,
62  const char* heading,
63  const char* path_in,
64  char** path_out);
65  bool (*show_and_get_image_list)(KODI_HANDLE kodiBase,
66  const char* shares,
67  const char* heading,
68  char*** file_list,
69  unsigned int* entries);
70  void (*clear_file_list)(KODI_HANDLE kodiBase, char*** file_list, unsigned int entries);
72 
73 #ifdef __cplusplus
74 } /* extern "C" */
75 #endif /* __cplusplus */
76 
77 #endif /* !C_API_GUI_DIALOGS_FILEBROWSER_H */
AddonToKodiFuncTable_kodi_gui_dialogFileBrowser
Definition: filebrowser.h:22