diff options
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h')
| -rw-r--r-- | xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h new file mode 100644 index 0000000..df23cd7 --- /dev/null +++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h | |||
| @@ -0,0 +1,54 @@ | |||
| 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 | |||
| 21 | typedef struct AddonToKodiFuncTable_kodi_gui_dialogNumeric | ||
| 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); | ||
| 48 | } AddonToKodiFuncTable_kodi_gui_dialogNumeric; | ||
| 49 | |||
| 50 | #ifdef __cplusplus | ||
| 51 | } /* extern "C" */ | ||
| 52 | #endif /* __cplusplus */ | ||
| 53 | |||
| 54 | #endif /* !C_API_GUI_DIALOGS_NUMERIC_H */ | ||
