Kodi Development  20.0
for Binary and Script based Add-Ons
numeric.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_NUMERIC_H
10 #define C_API_GUI_DIALOGS_NUMERIC_H
11 
12 #include "../definitions.h"
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif /* __cplusplus */
18 
20  {
21  bool (*show_and_verify_new_password)(KODI_HANDLE kodiBase, char** password);
22  int (*show_and_verify_password)(KODI_HANDLE kodiBase,
23  const char* password,
24  const char* heading,
25  int retries);
26  bool (*show_and_verify_input)(KODI_HANDLE kodiBase,
27  const char* verify_in,
28  char** verify_out,
29  const char* heading,
30  bool verify_input);
31  bool (*show_and_get_time)(KODI_HANDLE kodiBase, struct tm* time, const char* heading);
32  bool (*show_and_get_date)(KODI_HANDLE kodiBase, struct tm* date, const char* heading);
33  bool (*show_and_get_ip_address)(KODI_HANDLE kodiBase,
34  const char* ip_address_in,
35  char** ip_address_out,
36  const char* heading);
37  bool (*show_and_get_number)(KODI_HANDLE kodiBase,
38  const char* input_in,
39  char** input_out,
40  const char* heading,
41  unsigned int auto_close_ms);
42  bool (*show_and_get_seconds)(KODI_HANDLE kodiBase,
43  const char* time_in,
44  char** time_out,
45  const char* heading);
47 
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif /* __cplusplus */
51 
52 #endif /* !C_API_GUI_DIALOGS_NUMERIC_H */