Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
list_item.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_LIST_ITEM_H
10#define C_API_GUI_LIST_ITEM_H
11
12#include "definitions.h"
13
14#ifdef __cplusplus
15extern "C"
16{
17#endif /* __cplusplus */
18
20 {
21 KODI_GUI_LISTITEM_HANDLE(*create)
22 (KODI_HANDLE kodiBase, const char* label, const char* label2, const char* path);
23 void (*destroy)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
24
25 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
26 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
27 char* (*get_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
28 void (*set_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
29 char* (*get_art)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* type);
30 void (*set_art)(KODI_HANDLE kodiBase,
31 KODI_GUI_LISTITEM_HANDLE handle,
32 const char* type,
33 const char* image);
34 char* (*get_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
35 void (*set_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* path);
36 char* (*get_property)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* key);
37 void (*set_property)(KODI_HANDLE kodiBase,
38 KODI_GUI_LISTITEM_HANDLE handle,
39 const char* key,
40 const char* value);
41 void (*select)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, bool select);
42 bool (*is_selected)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
44
45#ifdef __cplusplus
46} /* extern "C" */
47#endif /* __cplusplus */
48
49#endif /* !C_API_GUI_LIST_ITEM_H */