• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 Huawei Technologies Co., Ltd.
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 
13 #include "tee_tui_gp_api.h"
14 
TEE_TUIInitSession(void)15 TEE_Result TEE_TUIInitSession(void)
16 {
17     return TEE_ERROR_NOT_SUPPORTED;
18 }
19 
TEE_TUICloseSession(void)20 TEE_Result TEE_TUICloseSession(void)
21 {
22     return TEE_ERROR_NOT_SUPPORTED;
23 }
24 
TEE_TUICheckTextFormat(const char * text,uint32_t * width,uint32_t * height,uint32_t * last_index)25 TEE_Result TEE_TUICheckTextFormat(const char *text, uint32_t *width, uint32_t *height, uint32_t *last_index)
26 {
27     (void)text;
28     (void)width;
29     (void)height;
30     (void)last_index;
31     return TEE_ERROR_NOT_SUPPORTED;
32 }
33 
TEE_TUIGetScreenInfo(TEE_TUIScreenOrientation screenOrientation,uint32_t nbEntryFields,TEE_TUIScreenInfo * screenInfo)34 TEE_Result TEE_TUIGetScreenInfo(TEE_TUIScreenOrientation screenOrientation,
35                                 uint32_t nbEntryFields,
36                                 TEE_TUIScreenInfo *screenInfo)
37 {
38     (void)screenOrientation;
39     (void)nbEntryFields;
40     (void)screenInfo;
41     return TEE_ERROR_NOT_SUPPORTED;
42 }
43 
TEE_TUIDisplayScreen(TEE_TUIScreenConfiguration * screenConfiguration,bool closeTUISession,TEE_TUIEntryField * entryFields,uint32_t entryFieldCount,TEE_TUIButtonType * selectedButton)44 TEE_Result TEE_TUIDisplayScreen(TEE_TUIScreenConfiguration *screenConfiguration,
45                                 bool closeTUISession,
46                                 TEE_TUIEntryField *entryFields,
47                                 uint32_t entryFieldCount,
48                                 TEE_TUIButtonType *selectedButton)
49 {
50     (void)screenConfiguration;
51     (void)closeTUISession;
52     (void)entryFields;
53     (void)entryFieldCount;
54     (void)selectedButton;
55     return TEE_ERROR_NOT_SUPPORTED;
56 }
57 
TEE_TUINotify_fp(void)58 TEE_Result TEE_TUINotify_fp(void)
59 {
60     return TEE_ERROR_NOT_SUPPORTED;
61 }
62 
TEE_TUISetInfo(int32_t type)63 TEE_Result TEE_TUISetInfo(int32_t type)
64 {
65     (void)type;
66     return TEE_ERROR_NOT_SUPPORTED;
67 }
68 
TEE_TUISendEvent(int32_t type)69 TEE_Result TEE_TUISendEvent(int32_t type)
70 {
71     (void)type;
72     return TEE_ERROR_NOT_SUPPORTED;
73 }
74 
TEE_TUISetLabel(TEE_TUIScreenLabel * label,uint32_t len)75 TEE_Result TEE_TUISetLabel(TEE_TUIScreenLabel *label, uint32_t len)
76 {
77     (void)label;
78     (void)len;
79     return TEE_ERROR_NOT_SUPPORTED;
80 }
81