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